浏览代码

Added Quit App functionality

iainsaxonhome 3 年之前
父节点
当前提交
79a45547f5
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      native/nativeshell.js

+ 5 - 0
native/nativeshell.js

@@ -8,6 +8,7 @@ const features = [
     "externallinks",
     "clientsettings",
     "multiserver",
+    "quitapp",
     "remotecontrol",
     "fullscreenchange",
     "filedownload",
@@ -55,6 +56,10 @@ window.NativeShell = {
         showSettingsModal();
     },
 
+    quitApp() {
+        window.api.system.exit();
+    },
+
     getPlugins() {
         return plugins;
     }