Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Инициализация бота
- init: function () {
- var firefoxProfileDir = Components.classes["@mozilla.org/file/directory_service;1"].
- getService(Components.interfaces.nsIProperties).
- get("ProfD", Components.interfaces.nsIFile).
- path;
- var iMacrosDir = firefoxProfileDir+'\\iMacros\\Macros';
- // Путь для сохранения конфига
- this._configPath = iMacrosDir+"\\setting.json",
- this._uiTemplate = "file:///"+iMacrosDir+"\\ui.htm",
- // Рисуем интерфейс
- this.drawUI();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement