Skip to content

Commit

Permalink
- 禁止外层网页滚动 影响使用
Browse files Browse the repository at this point in the history
- 补充package.json
  • Loading branch information
fritx committed Jun 5, 2016
1 parent 39202fb commit 3e1ad4e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"name": "wxbot",
"version": "0.0.6",
"version": "0.0.7",
"description": "普通个人号 微信机器人/外挂",
"repository": "[email protected]:fritx/wxbot.git",
"homepage": "https://github.com/fritx/wxbot",
"keywords": [
"weixin",
"wx",
"qq",
"bot"
],
"scripts": {
"start": "electron ."
},
"dependencies": {
"bytes": "^2.1.0",
"fs-extra": "^0.24.0",
Expand Down
10 changes: 8 additions & 2 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ function debug(/*args*/){
_console.log(args)
}

// 禁止外层网页滚动 影响使用
document.addEventListener('DOMContentLoaded', () => {
// document.body.style.height = '100%'
document.body.style.overflow = 'hidden'
})


var free = true
// setTimeout(function(){
Expand Down Expand Up @@ -232,8 +238,8 @@ function onReddot($chat_item){
reset()
}



}, 100)
}

Expand Down

0 comments on commit 3e1ad4e

Please sign in to comment.