File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ class Activity {
5858 }
5959
6060 getTab ( domain ) {
61- return tabs . find ( o => o . url === domain ) ;
61+ if ( tabs !== undefined )
62+ return tabs . find ( o => o . url === domain ) ;
6263 }
6364
6465 extractHostname ( url ) {
@@ -77,10 +78,6 @@ class Activity {
7778 return hostname ;
7879 }
7980
80- loadDataFromStorage ( ) {
81- var tabs = storage . load ( STORAGE_TABS ) ;
82- }
83-
8481 updateFavicon ( tab ) {
8582 var domain = this . extractHostname ( tab . url ) ;
8683 var currentTab = this . getTab ( domain ) ;
Original file line number Diff line number Diff line change @@ -67,7 +67,9 @@ function loadSettings() {
6767 document . getElementById ( 'memoryUse' ) . innerHTML = ( integer / 1024 ) . toFixed ( 2 ) + 'Kb' ;
6868 } ) ;
6969 storage . getSettings ( STORAGE_BLACK_LIST , function ( items ) {
70- blackList = items ;
70+ if ( items !== undefined )
71+ blackList = items ;
72+ else blackList = [ ] ;
7173 viewBlackList ( items ) ;
7274 } ) ;
7375 storage . getSettings ( STORAGE_RESTRICTION_LIST , function ( items ) {
You can’t perform that action at this time.
0 commit comments