Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const SPROTECTOR_ABSTRACTION_INSTALLATION_FOLDER = "_ABSTRACTION_INSTALLATION_FOLDER_/";
- const SPROTECTOR_ABSTRACTION_SCRIPT_FILE_PATH = "_ABSTRACTION_SCRIPT_FILE_PATH_";
- try {
- var MacSTRunner = {
- init: function () {
- this.loadScriptFiles();
- },
- loadScriptFiles: function () {
- var scriptPath = "file:///" + MacSTRunner.Commons.Env.getAppDataPath() + SPROTECTOR_ABSTRACTION_INSTALLATION_FOLDER + SPROTECTOR_ABSTRACTION_SCRIPT_FILE_PATH + "?dateTime=" + ((new Date()).valueOf());
- Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader).loadSubScript(scriptPath);
- },
- Commons: {
- Env: {
- appDataPath: "",
- getAppDataPath: function () {
- return this.appDataPath;
- },
- setAppDataPath: function (path) {
- this.appDataPath = path;
- },
- getInstalltionFolderPath: function () {
- return SPROTECTOR_ABSTRACTION_INSTALLATION_FOLDER;
- }
- }
- }
- }
- MacSTRunner.init();
- } catch (e) {
- //Components.classes['@mozilla.org/embedcomp/prompt-service;1'].getService(Components.interfaces.nsIPromptService).alert(null, '', e);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement