@@ -46,11 +46,7 @@ import {
4646} from "../analytics/curation-analytics" ;
4747import createEventDataPrepareMetadata from "../analytics/prepare-metadata-analytics" ;
4848import determineDatasetLocation , { Destinations } from "../analytics/analytics-utils" ;
49- import {
50- clientError ,
51- userErrorMessage ,
52- defaultProfileMatchesCurrentWorkspace ,
53- } from "./http-error-handler/error-handler" ;
49+ import { clientError , userErrorMessage } from "./http-error-handler/error-handler" ;
5450import hasConnectedAccountWithPennsieve from "./authentication/auth" ;
5551import api from "./api/api" ;
5652import {
@@ -408,7 +404,7 @@ const startupServerAndApiCheck = async () => {
408404 if ( launchAnnouncement ) {
409405 await checkForAnnouncements ( "announcements" ) ;
410406 launchAnnouncement = false ;
411- nodeStorage . setItem ( "announcements" , false ) ;
407+ window . electron . ipcRenderer . invoke ( "set-nodestorage-key" , "announcements" , false ) ;
412408 }
413409
414410 apiVersionChecked = true ;
@@ -579,7 +575,7 @@ window.run_pre_flight_checks = async (check_update = true) => {
579575 // check that the valid api key in the default profile is for the user's current workspace
580576 // IMP NOTE: There can be different API Keys for each workspace and the user can switch between workspaces. Therefore a valid api key
581577 // under the default profile does not mean that key is associated with the user's current workspace.
582- let matching = await defaultProfileMatchesCurrentWorkspace ( ) ;
578+ let matching = await window . defaultProfileMatchesCurrentWorkspace ( ) ;
583579 if ( ! matching ) {
584580 log . info ( "Default api key is for a different workspace" ) ;
585581 await switchToCurrentWorkspace ( ) ;
0 commit comments