blob: 2799bd2fa2adc4365f290aac070d5516516a9c25 [file] [log] [blame]
Adrià Vilanova Martínez825888a2023-07-23 01:53:48 +02001import {KILL_SWITCH_LOCALSTORAGE_KEY, KILL_SWITCH_LOCALSTORAGE_VALUE} from '../xhrInterceptor/killSwitchHandler.js';
Adrià Vilanova Martínez4757ae82022-12-28 16:41:37 +01002import XHRProxy from '../xhrInterceptor/XHRProxy.js';
3
Adrià Vilanova Martínez825888a2023-07-23 01:53:48 +02004if (window.localStorage.getItem(KILL_SWITCH_LOCALSTORAGE_KEY) !==
5 KILL_SWITCH_LOCALSTORAGE_VALUE) {
6 new XHRProxy();
7}