diff --git a/package.json b/package.json index 4745853..22e3039 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,18 @@ { "name": "wxbot", - "version": "0.0.6", + "version": "0.0.7", + "description": "普通个人号 微信机器人/外挂", "repository": "git@github.com: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", diff --git a/preload.js b/preload.js index c2c0804..08e1e49 100644 --- a/preload.js +++ b/preload.js @@ -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(){ @@ -232,8 +238,8 @@ function onReddot($chat_item){ reset() } - - + + }, 100) }