File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,9 @@ function generateWhitelistedHostREs () {
173
173
174
174
async function loadExtensionSettings ( ) {
175
175
extensionSettings = await browser . storage . sync . get ( ) ;
176
+ if ( extensionSettings . whitelist === undefined ) {
177
+ extensionSettings . whitelist = "" ;
178
+ }
176
179
}
177
180
178
181
async function clearGoogleCookies ( ) {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function validate_whitelist() {
14
14
}
15
15
16
16
function fill_whitelist_option ( stored_whitelist ) {
17
- whitelist_text = stored_whitelist . join ( "\n" ) ;
17
+ whitelist_text = ( stored_whitelist === undefined ) ? "" : stored_whitelist . join ( "\n" ) ;
18
18
document . querySelector ( "#whitelist" ) . value = whitelist_text ? whitelist_text : "" ;
19
19
}
20
20
You can’t perform that action at this time.
0 commit comments