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 /application | |
parent | a31b9e067c1c98bb96200514d5e15830aaefbbe1 (diff) | |
download | uxp-aaa9fc180ad79f8f8a1f1f8868f9f4e372d0ac56.tar.gz |
Pale Moon: Use file path for bookmarks import/export.
Diffstat (limited to 'application')
-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 a941938237..40dbcb9b86 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); } }; |