vite-plugin-debugger
Version:
A vite plugin provide the debugger tools for mobile devices.
1 lines • 465 B
JavaScript
let _show=!1,storageStr=``;if((active==null?void 0:active.mode)===`url`){let e=``,t=window.location.href.match(RegExp(`[?&]${active.param}=([^&]+)`,`i`));Array.isArray(t)&&t.length>1&&(e=t[1]),e&&sessionStorage.setItem(active.param,e)}((active==null?void 0:active.mode)===`url`||(active==null?void 0:active.mode)===`storage`)&&(storageStr=sessionStorage.getItem(active.param)),active?active.override?storageStr&&(_show=!0):debug&&storageStr&&(_show=!0):_show=debug;