File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
packages/desktop-electron/src/renderer Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -152,12 +152,12 @@ const createPlatform = (): Platform => {
152152 storage,
153153
154154 checkUpdate : async ( ) => {
155- if ( ! UPDATER_ENABLED ) return { updateAvailable : false }
155+ if ( ! UPDATER_ENABLED ( ) ) return { updateAvailable : false }
156156 return window . api . checkUpdate ( )
157157 } ,
158158
159159 update : async ( ) => {
160- if ( ! UPDATER_ENABLED ) return
160+ if ( ! UPDATER_ENABLED ( ) ) return
161161 await window . api . installUpdate ( )
162162 } ,
163163
Original file line number Diff line number Diff line change 11import { initI18n , t } from "./i18n"
22
3- export const UPDATER_ENABLED = window . __OPENCODE__ ?. updaterEnabled ?? false
3+ export const UPDATER_ENABLED = ( ) => window . __OPENCODE__ ?. updaterEnabled ?? false
44
55export async function runUpdater ( { alertOnFail } : { alertOnFail : boolean } ) {
66 await initI18n ( )
You can’t perform that action at this time.
0 commit comments