File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11export const IS_DEV = __development__ ;
22export const APPLICATION_VERSION = __app_version__ ;
3- export const APPLICATION_NAME = ` ${ __app_name__ } @ ${ __app_version__ } ` ;
3+ export const APPLICATION_NAME = __app_name__ ;
44export const APPLICATION_HOME_PAGE = __home_page__ ;
Original file line number Diff line number Diff line change 1- import { cloneObjectSafely } from '@/api/clone.ts' ;
2-
31type TPanelKey =
42 | 'eval'
53 | 'media'
@@ -118,13 +116,13 @@ export function panelsArrayToVisibilityMap(panels: TSettingsPanel[]) {
118116}
119117
120118export async function getSettings ( ) : Promise < typeof DEFAULT_SETTINGS > {
121- const store = await chrome . storage . local . get ( [ SETTINGS_VERSION ] ) ;
119+ let store = await chrome . storage . local . get ( [ SETTINGS_VERSION ] ) ;
122120 const isEmpty = ! Object . keys ( store ) . length ;
123121
124122 if ( isEmpty ) {
125- store [ SETTINGS_VERSION ] = cloneObjectSafely ( DEFAULT_SETTINGS ) ;
126123 await chrome . storage . local . clear ( ) ; // rid off previous version settings
127- await chrome . storage . local . set ( store ) ;
124+ await chrome . storage . local . set ( { [ SETTINGS_VERSION ] : DEFAULT_SETTINGS } ) ;
125+ store = await chrome . storage . local . get ( [ SETTINGS_VERSION ] ) ;
128126 }
129127
130128 return store [ SETTINGS_VERSION ] ;
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export default function (
3737 plugins : [
3838 new webpack . DefinePlugin ( {
3939 __development__ : `${ ! isProd } ` ,
40- __app_name__ : `"browser-api-monitor"` ,
40+ __app_name__ : `"browser-api-monitor@ ${ manifest . version } "` ,
4141 __app_version__ : `"${ manifest . version } "` ,
4242 __home_page__ : `"${ manifest . homepage_url } "` ,
4343 } ) ,
You can’t perform that action at this time.
0 commit comments