mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix spurious errors in uBO's dev console
Those spurious errors occurred when launching the browser with the dashboard already opened from the previous browsing session.
This commit is contained in:
parent
c136c7b454
commit
5bea149e8f
1 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ if ( self.location.hash.slice(1) === 'no-dashboard.html' ) {
|
|||
]);
|
||||
|
||||
{
|
||||
const details = results[0];
|
||||
const details = results[0] || {};
|
||||
document.body.classList.toggle(
|
||||
'canUpdateShortcuts',
|
||||
details.canUpdateShortcuts === true
|
||||
|
|
@ -132,7 +132,7 @@ if ( self.location.hash.slice(1) === 'no-dashboard.html' ) {
|
|||
}
|
||||
|
||||
{
|
||||
let pane = results[1];
|
||||
let pane = results[1] || null;
|
||||
if ( self.location.hash !== '' ) {
|
||||
pane = self.location.hash.slice(1) || null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue