diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-05 17:21:23 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-05 17:21:23 +0200 |
commit | d5a620cf09b835db2bccd99556525c90b458719f (patch) | |
tree | 1507f96be0413bd20026878890b0c1ad438e51d2 /views/script/core_notification.js | |
parent | 44210691ee8444509ac466a362337af77f2bcd49 (diff) | |
download | kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.tar.gz kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.tar.bz2 kartik-client-d5a620cf09b835db2bccd99556525c90b458719f.zip |
i18n for 21.08
Diffstat (limited to 'views/script/core_notification.js')
-rw-r--r-- | views/script/core_notification.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/views/script/core_notification.js b/views/script/core_notification.js index 118d19d..676b2d0 100644 --- a/views/script/core_notification.js +++ b/views/script/core_notification.js @@ -1,13 +1,13 @@ -var ipcRenderer = require('electron').ipcRenderer; -ipcRenderer.on('notification', function (event, data) { - document.getElementById("notification-title").innerText = data.title; - document.getElementById("notification-message").innerText = data.message; - document.getElementById("notification").style.right = "20px"; - document.getElementById("notification").style.opacity = "1"; - new Audio("./sfx/notification.mp3").play(); - - setTimeout(() => { - document.getElementById("notification").style.right = "-300px"; - document.getElementById("notification").style.opacity = "0"; - }, 5000) +var ipcRenderer = require('electron').ipcRenderer;
+ipcRenderer.on('notification', function (event, data) {
+ document.getElementById("notification-title").innerText = data.title;
+ document.getElementById("notification-message").innerText = data.message;
+ document.getElementById("notification").style.right = "20px";
+ document.getElementById("notification").style.opacity = "1";
+ new Audio("./sfx/notification.mp3").play();
+
+ setTimeout(() => {
+ document.getElementById("notification").style.right = "-300px";
+ document.getElementById("notification").style.opacity = "0";
+ }, 5000)
});
\ No newline at end of file |