Browse Source

Added Quit App functionality

iainsaxonhome 3 years ago
parent
commit
79a45547f5
1 changed files with 5 additions and 0 deletions
  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;
     }