export enum StorageSyncKey { GatewayBaseURL = 'GatewayBaseURL' , GatewayOption = "GatewayOption" , BookmarkedDomains = "BookmarkedDomains" } export function chromeStorageSyncClear ( ) { return new Promise ( resolve => { chrome . storage . sync . clear ( resolve ) ; } ) ; } export function chromeStorageSyncGet ( keys ) { return new Promise ( resolve => { chrome . storage . sync . get ( keys , items => resolve ( items [ keys ] ) ) ; } ) ; } export function chromeStorageSyncSet ( key , value ) { return new Promise ( resolve => { chrome . storage . sync . set ( { [ key ] : value } , resolve ) ; } ) ; }