File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const analytics = Analytics({
1515 } ) ,
1616 } ) ,
1717 userpilot ( {
18- token : isDev ( ) ? 'STG-NX-54e88e10' : 'NX-54e88e10' ,
18+ token : 'NX-54e88e10' ,
1919 } ) ,
2020 ] ,
2121 } ) ,
Original file line number Diff line number Diff line change 11import { User } from 'src/features/api' ;
22import { Userpilot } from 'userpilot' ;
3+ import { isDev } from '../isDevEnvironment' ;
34
45declare global {
56 interface Window {
@@ -56,6 +57,9 @@ export default function userpilotPlugin(pluginSettings: UserpilotConfig) {
5657 Userpilot . track ( event , { ...properties , userId } ) ;
5758 } ,
5859
59- loaded : ( ) => ! ! window . userpilot ,
60+ loaded : ( ) => {
61+ const previewEnabled = localStorage . getItem ( 'userpilot_ug_preview' ) ;
62+ return isDev ( ) && previewEnabled !== null ? true : ! ! window . userpilot ;
63+ } ,
6064 } ;
6165}
You can’t perform that action at this time.
0 commit comments