Pale Moon: Use file path for bookmarks import/export.

pull/1/head
Ascrod 4 years ago committed by Roy Tam
parent 5aa6fbb0ae
commit 13969c80a3
  1. 4
      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);
}
};

Loading…
Cancel
Save