Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
RoderickQiu committed Jan 23, 2019
1 parent c0c9ca4 commit 37b605e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
</div>
<div id="about">
<p class="lead rest font-weight-bolder">wnr</p>
<p class="small text-muted">
<script>document.write("v" + require("./package.json").version);</script>&nbsp;|&nbsp;Using Electron v
<script>document.write(process.versions.electron);</script>
<p class="small text-muted font-italic">
<script>document.write("v" + require("./package.json").version);</script>&nbsp;|&nbsp;Using Electron
v<script>document.write(process.versions.electron);</script>
</p>
<p class="small">
<a class="rest" href="javascript:require('electron').shell.openExternal(require('./package.json').homepage)">Homepage</a>&nbsp;|&nbsp;
Expand Down
6 changes: 3 additions & 3 deletions settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@
</span>
</div>
<br />
<p class="lead">Other things</p>
<p class="lead">Other Things</p>
<hr />
<div class="text-muted small">
<li>
<a href="javascript:updatechecker(2)" class="rest"><span id="manually">Manually Check for Update</span></a>&nbsp;<b>(Now
<a href="javascript:updatechecker(2)" class="rest"><span id="manually">Manually check for update</span></a>&nbsp;<b>(Now
<script>document.write("v" + require("./package.json").version)</script>)</b>
</li>
<li>
Open/Hide Hotkey:
Open/Hide hotkey:
<b>
<script>if (process.platform == 'darwin') document.write("Command");
else document.write("Control");//根据平台更换文字</script>+Shift+Alt+W.
Expand Down
2 changes: 1 addition & 1 deletion timer.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<audio id="allend" src="res/sound/allend.wav"></audio>
<audio id="timeend" src="res/sound/timeend.wav"></audio>
<script>
var ipc = require('electron').ipcRenderer;
const Store = require('electron-store');
const store = new Store();
var $_GET = (function () {
Expand Down Expand Up @@ -75,7 +76,6 @@
}
}
function warninggiver(isend) {
var ipc = require('electron').ipcRenderer;
if (isend == 0) ipc.send('warninggiver-allend');
else if (isend == 1) ipc.send('warninggiver-workend');
else ipc.send('warninggiver-restend');
Expand Down
2 changes: 1 addition & 1 deletion updater.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function updatechecker(method) {
} else if (method == 2) {// manually
ipc.send("noupdateavailable");
}
if (method == 2) document.getElementById("manually").innerText = "Manually Check for Update";
if (method == 2) document.getElementById("manually").innerText = "Manually check for update";
}
});
store.set("last-check-time", nowtime);
Expand Down

0 comments on commit 37b605e

Please sign in to comment.