File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 8
8
} from '../src/utils' ;
9
9
import includes from 'core-js/library/fn/array/includes' ;
10
10
import find from 'core-js/library/fn/array/find' ;
11
+ import { utils } from 'mocha' ;
11
12
12
13
const BIDDER_CODE = 'widespace' ;
13
14
const WS_ADAPTER_VERSION = '2.0.1' ;
@@ -177,8 +178,11 @@ export const spec = {
177
178
function storeData ( data , name , stringify = true ) {
178
179
const value = stringify ? JSON . stringify ( data ) : data ;
179
180
if ( LOCAL_STORAGE_AVAILABLE ) {
180
- localStorage . setItem ( name , value ) ;
181
- return true ;
181
+ // adding try-catch as this code was breaking CI for IE-11
182
+ try {
183
+ localStorage . setItem ( name , value ) ;
184
+ return true ;
185
+ } catch ( e ) { }
182
186
} else if ( COOKIE_ENABLED ) {
183
187
const theDate = new Date ( ) ;
184
188
const expDate = new Date ( theDate . setMonth ( theDate . getMonth ( ) + 12 ) ) . toGMTString ( ) ;
You can’t perform that action at this time.
0 commit comments