mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-25 00:27:29 +09:00
Pale Moon: Use file path for bookmarks import/export.
This commit is contained in:
parent
5aa6fbb0ae
commit
13969c80a3
1 changed files with 2 additions and 2 deletions
|
|
@ -491,7 +491,7 @@ var PlacesOrganizer = {
|
||||||
|
|
||||||
Task.spawn(function() {
|
Task.spawn(function() {
|
||||||
try {
|
try {
|
||||||
yield BookmarkJSONUtils.importFromFile(aFile, true);
|
yield BookmarkJSONUtils.importFromFile(aFile.path, true);
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
PlacesOrganizer._showErrorAlert(PlacesUIUtils.getString("bookmarksRestoreParseError"));
|
PlacesOrganizer._showErrorAlert(PlacesUIUtils.getString("bookmarksRestoreParseError"));
|
||||||
}
|
}
|
||||||
|
|
@ -519,7 +519,7 @@ var PlacesOrganizer = {
|
||||||
let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
|
let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
|
||||||
let fpCallback = function fpCallback_done(aResult) {
|
let fpCallback = function fpCallback_done(aResult) {
|
||||||
if (aResult != Ci.nsIFilePicker.returnCancel) {
|
if (aResult != Ci.nsIFilePicker.returnCancel) {
|
||||||
BookmarkJSONUtils.exportToFile(fp.file);
|
BookmarkJSONUtils.exportToFile(fp.file.path);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue