Last active
January 13, 2020 10:42
-
-
Save rozek/b1762e44771e4f0372fbc7a1d90cb91e to your computer and use it in GitHub Desktop.
Bangle.js: uninstalls the "HelWrld" App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Storage = require('Storage'); | |
let AppName = 'HelWrld'; | |
(function () { | |
try { | |
let FileList = Storage.readJSON(AppName);['files'].split(','); | |
for (let i = 0, l = FileList.length; i < l; i++) { | |
Storage.erase(FileList[i]); | |
} | |
return; | |
} catch (Signal) { /* nop */ } | |
Storage.erase('+' + AppName); | |
Storage.erase('*' + AppName); | |
Storage.erase('-' + AppName); | |
Storage.erase('@' + AppName); | |
Storage.erase('=' + AppName); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment