From 5d2ad9ba006b2f05a52f8849b6f796a6135a7bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E8=8D=A3=E5=8D=87?= <3136352472@qq.com> Date: Mon, 16 Dec 2019 10:32:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B1=BB=E5=9E=8B(=E6=96=B0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD),=E5=BD=B1=E5=93=8D=E7=9A=84=E8=8C=83?= =?UTF-8?q?=E5=9B=B4(=E4=BB=A3=E7=A0=81=E9=80=BB=E8=BE=91),[sleep=E4=B8=80?= =?UTF-8?q?=E4=B8=8B]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 7 +++++++ index.js | 6 +++--- xwebstart.sh | 4 ++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3871cad..81e71fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ ------ +### 2019-12-16 + +#### 新功能 ++ 3136352472 [10:32:14] :sleep一下;影响的范围(代码逻辑) + +------ + ### 2019-11-15 #### 新功能 diff --git a/index.js b/index.js index 3b5dd21..c6ca4e1 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -const {app, BrowserWindow} = require('electron') +const {app, BrowserWindow} = require('electron'); function createWindow() { // 创建浏览器窗口 @@ -6,8 +6,8 @@ function createWindow() { width: 1024, height: 600, kiosk: true, - frame: true - }) + frame: false + }); // 加载index.html文件 win.loadFile('index.html') diff --git a/xwebstart.sh b/xwebstart.sh index 75ed042..4eebe47 100644 --- a/xwebstart.sh +++ b/xwebstart.sh @@ -1,7 +1,7 @@ #!/bin/sh - +sleep 1 xset dpms 0 0 0 xset s off - +sleep 1 # 将electron换成绝对路径 /electron/electron --disable-http-cache --no-sandbox /web/index.js