Fix: TheDesk nano

This commit is contained in:
Cutls 2019-06-25 23:26:15 +09:00
parent 3368e30e15
commit 87da95b9a4
2 changed files with 6 additions and 3 deletions

View File

@ -120,6 +120,9 @@ function playSound() {
volumeControl.gain.value = 0.8
source.start(0);
}
function nano() {
postMessage(["nano", null], "*")
}
onmessage = function (e) {
if (e.data[0] == "details") {
details(e.data[1][0], e.data[1][1])

View File

@ -55,6 +55,8 @@ onmessage = function (e) {
ipc.send('theme-css-request', e.data[1]);
} else if (e.data[0] == "downloadButton") {
ipc.send('download-btn', e.data[1]);
} else if (e.data[0] == "nano") {
ipc.send('nano', null);
}
}
//version.js
@ -76,9 +78,7 @@ ipc.on('shownotf', function (event, args) {
postMessage(["udg", [user, acct_id]], "*")
}
})
function nano() {
ipc.send('nano', "");
}
//first.js
ipc.on('custom-css-response', function (event, arg) {
if (arg == "") { return false; }