1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-23 19:03:02 +01:00

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

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;
}