mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-27 13:28:52 +00:00
14 lines
479 B
JavaScript
14 lines
479 B
JavaScript
var { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
|
Cu.importGlobalProperties(["File"]);
|
|
|
|
addMessageListener("file.open", function (e) {
|
|
var tmpFile = Cc["@mozilla.org/file/directory_service;1"]
|
|
.getService(Ci.nsIDirectoryService)
|
|
.QueryInterface(Ci.nsIProperties)
|
|
.get('ProfD', Ci.nsIFile);
|
|
tmpFile.append('prefs.js');
|
|
sendAsyncMessage("file.opened", {
|
|
data: [ File.createFromNsIFile(tmpFile) ]
|
|
});
|
|
});
|