--- /dev/null
+var win=nw.Window.open('https://workshop.fluidbook.com/publications', {}, function (win) {\r
+});\r
+\r
+try {\r
+ win.on('close', function () {\r
+ win.hide();\r
+ nw.App.clearCache();\r
+\r
+ // this one will cause significantly increase the\r
+ // shutdown duration if run during app exit\r
+ chrome.browsingData.remove({\r
+ since: 0\r
+ }, {\r
+ appcache: true,\r
+ cache: true,\r
+ cookies: false,\r
+ downloads: false,\r
+ fileSystems: false,\r
+ formData: false,\r
+ history: false,\r
+ indexedDB: false,\r
+ localStorage: false,\r
+ pluginData: false,\r
+ passwords: false,\r
+ serverBoundCertificates: false,\r
+ serviceWorkers: false,\r
+ webSQL: false\r
+ });\r
+\r
+ win.close(true);\r
+ });\r
+} catch (e) {\r
+ console.log(e);\r
+}
\ No newline at end of file
{\r
- "main": "https://workshop.fluidbook.com/publications/",\r
+ "main": "main.js",\r
"name": "Fluidbook Workshop",\r
+ "chromium-args": "--disk-cache-size=1 --user-data-dir='temp/'",\r
"window": {\r
- "id":"main",\r
- "title":"Fluidbook Workshop",\r
- "width":1600,\r
- "height":900,\r
- "icon":"fluidbook.png"\r
+ "id": "main",\r
+ "title": "Fluidbook Workshop",\r
+ "width": 1600,\r
+ "height": 900,\r
+ "icon": "fluidbook.png"\r
}\r
}
\ No newline at end of file
Page instfiles\r
\r
; Compression\r
-SetCompress off\r
+SetCompress auto\r
\r
; The stuff to install\r
Section "" ;No components page, name is not important\r
{\r
- "main": "https://workshop.fluidbook.com/publications/",\r
+ "main": "main.js",\r
"name": "Fluidbook Workshop",\r
+ "chromium-args": "--disk-cache-size=1 --user-data-dir='temp/'",\r
"window": {\r
- "id":"main",\r
- "title":"Fluidbook Workshop",\r
- "width":1600,\r
- "height":900,\r
- "icon":"fluidbook.png"\r
+ "id": "main",\r
+ "title": "Fluidbook Workshop",\r
+ "width": 1600,\r
+ "height": 900,\r
+ "icon": "fluidbook.png"\r
}\r
}
\ No newline at end of file