Changeset 6569
- Timestamp:
- Jan 11, 2018, 1:47:55 PM (3 years ago)
- Location:
- open-sysclone/trunk/fuentes/open-sysclone-gui.install/usr/share/open-sysclone-gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
open-sysclone/trunk/fuentes/open-sysclone-gui.install/usr/share/open-sysclone-gui/js/login.js
r647 r6569 1 var fs = require('fs'); 1 2 function loginManager(){ 2 3 this.BindLoginEventHandlers = function BindLoginEventHandlers(){ … … 74 75 } 75 76 77 78 function deleteFolderRecursive(path) { 79 if (fs.existsSync(path)) { 80 fs.readdirSync(path).forEach(function(file, index){ 81 var curPath = path + "/" + file; 82 if (fs.lstatSync(curPath).isDirectory()) { // recurse 83 deleteFolderRecursive(curPath); 84 } else { // delete file 85 fs.unlinkSync(curPath); 86 } 87 }); 88 fs.rmdirSync(path); 89 } 90 } 91 92 76 93 $(document).ready(function() { 94 95 deleteFolderRecursive("/tmp/.chromium_open"); 77 96 var lm = new loginManager(); 78 97 lm.BindLoginEventHandlers(); -
open-sysclone/trunk/fuentes/open-sysclone-gui.install/usr/share/open-sysclone-gui/package.json
r6565 r6569 18 18 "plugin": true 19 19 }, 20 "chromium-args": "--ignore-certificate-errors "20 "chromium-args": "--ignore-certificate-errors --user-data-dir='/tmp/.chromium_open'" 21 21 22 22 /*
Note: See TracChangeset
for help on using the changeset viewer.