Loading browser/components/places/content/places.js +2 −2 Original line number Original line Diff line number Diff line Loading @@ -602,7 +602,7 @@ var PlacesOrganizer = { document.getElementById("restoreFromFile") document.getElementById("restoreFromFile") ); ); m.setAttribute("label", dateFormatter.format(backupDate) + sizeInfo); m.setAttribute("label", dateFormatter.format(backupDate) + sizeInfo); m.setAttribute("value", OS.Path.basename(backupFiles[i])); m.setAttribute("value", PathUtils.filename(backupFiles[i])); m.setAttribute( m.setAttribute( "oncommand", "oncommand", "PlacesOrganizer.onRestoreMenuItemClick(this);" "PlacesOrganizer.onRestoreMenuItemClick(this);" Loading @@ -626,7 +626,7 @@ var PlacesOrganizer = { let backupName = aMenuItem.getAttribute("value"); let backupName = aMenuItem.getAttribute("value"); let backupFilePaths = await PlacesBackups.getBackupFiles(); let backupFilePaths = await PlacesBackups.getBackupFiles(); for (let backupFilePath of backupFilePaths) { for (let backupFilePath of backupFilePaths) { if (OS.Path.basename(backupFilePath) == backupName) { if (PathUtils.filename(backupFilePath) == backupName) { PlacesOrganizer.restoreBookmarksFromFile(backupFilePath); PlacesOrganizer.restoreBookmarksFromFile(backupFilePath); break; break; } } Loading Loading
browser/components/places/content/places.js +2 −2 Original line number Original line Diff line number Diff line Loading @@ -602,7 +602,7 @@ var PlacesOrganizer = { document.getElementById("restoreFromFile") document.getElementById("restoreFromFile") ); ); m.setAttribute("label", dateFormatter.format(backupDate) + sizeInfo); m.setAttribute("label", dateFormatter.format(backupDate) + sizeInfo); m.setAttribute("value", OS.Path.basename(backupFiles[i])); m.setAttribute("value", PathUtils.filename(backupFiles[i])); m.setAttribute( m.setAttribute( "oncommand", "oncommand", "PlacesOrganizer.onRestoreMenuItemClick(this);" "PlacesOrganizer.onRestoreMenuItemClick(this);" Loading @@ -626,7 +626,7 @@ var PlacesOrganizer = { let backupName = aMenuItem.getAttribute("value"); let backupName = aMenuItem.getAttribute("value"); let backupFilePaths = await PlacesBackups.getBackupFiles(); let backupFilePaths = await PlacesBackups.getBackupFiles(); for (let backupFilePath of backupFilePaths) { for (let backupFilePath of backupFilePaths) { if (OS.Path.basename(backupFilePath) == backupName) { if (PathUtils.filename(backupFilePath) == backupName) { PlacesOrganizer.restoreBookmarksFromFile(backupFilePath); PlacesOrganizer.restoreBookmarksFromFile(backupFilePath); break; break; } } Loading