Restore backuped preference correctly

This commit is contained in:
YUKI Hiroshi 2016-01-19 18:55:31 +09:00
parent 6dd37567c1
commit 97e1ae2eb9

View File

@ -225,7 +225,7 @@ var TreeStyleTabUtils = {
{ {
prefs.clearPref('browser.tabs.insertRelatedAfterCurrent'); prefs.clearPref('browser.tabs.insertRelatedAfterCurrent');
let backupValue = prefs.getPref('browser.tabs.insertRelatedAfterCurrent.backup'); let backupValue = prefs.getPref('browser.tabs.insertRelatedAfterCurrent.backup');
if (backupValue === null) if (backupValue !== null)
prefs.setPref('browser.tabs.insertRelatedAfterCurrent', backupValue); prefs.setPref('browser.tabs.insertRelatedAfterCurrent', backupValue);
} }
default: default: