mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +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() {
|
||||
try {
|
||||
yield BookmarkJSONUtils.importFromFile(aFile, true);
|
||||
yield BookmarkJSONUtils.importFromFile(aFile.path, true);
|
||||
} catch(ex) {
|
||||
PlacesOrganizer._showErrorAlert(PlacesUIUtils.getString("bookmarksRestoreParseError"));
|
||||
}
|
||||
|
|
@ -519,7 +519,7 @@ var PlacesOrganizer = {
|
|||
let fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
|
||||
let fpCallback = function fpCallback_done(aResult) {
|
||||
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