code review re. #1997: be sure the setting is persisted

This commit is contained in:
gorhill 2016-09-16 19:12:16 -04:00
parent 269c35a04a
commit ef0a7ed5cb
1 changed files with 4 additions and 1 deletions

View File

@ -214,7 +214,10 @@
µBlock.openNewTab = function(details) {
if ( details.url.startsWith('logger-ui.html') ) {
if ( details.shiftKey ) {
this.userSettings.alwaysDetachLogger = !this.userSettings.alwaysDetachLogger;
this.changeUserSettings(
'alwaysDetachLogger',
!this.userSettings.alwaysDetachLogger
);
}
details.popup = this.userSettings.alwaysDetachLogger;
}