diff options
author | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-02-01 21:08:39 -0500 |
---|---|---|
committer | Ascrod <32915892+Ascrod@users.noreply.github.com> | 2019-02-01 21:08:39 -0500 |
commit | aaa9fc180ad79f8f8a1f1f8868f9f4e372d0ac56 (patch) | |
tree | b8b3bb4f788f6aa808eded7619f82bbe845768c3 | |
parent | a31b9e067c1c98bb96200514d5e15830aaefbbe1 (diff) | |
download | UXP-aaa9fc180ad79f8f8a1f1f8868f9f4e372d0ac56.tar UXP-aaa9fc180ad79f8f8a1f1f8868f9f4e372d0ac56.tar.gz UXP-aaa9fc180ad79f8f8a1f1f8868f9f4e372d0ac56.tar.lz UXP-aaa9fc180ad79f8f8a1f1f8868f9f4e372d0ac56.tar.xz UXP-aaa9fc180ad79f8f8a1f1f8868f9f4e372d0ac56.zip |
Pale Moon: Use file path for bookmarks import/export.
-rw-r--r-- | application/palemoon/components/places/content/places.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/palemoon/components/places/content/places.js b/application/palemoon/components/places/content/places.js index a94193823..40dbcb9b8 100644 --- a/application/palemoon/components/places/content/places.js +++ b/application/palemoon/components/places/content/places.js @@ -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); } }; |