We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63cba57 commit 46d2244Copy full SHA for 46d2244
packages/core/src/injectScript.ts
@@ -95,6 +95,11 @@ function __checkUpdateSetup__(options: Options) {
95
} = options
96
const checkSystemUpdate = () => {
97
const localeVersion = getLocaleVersion()
98
+ if (!localeVersion) {
99
+ console.error('[pluginWebUpdateNotice] Failed to get locale version')
100
+ return
101
+ }
102
+
103
window
104
.fetch(`${injectFileBase}${DIRECTORY_NAME}/${JSON_FILE_NAME}.json?t=${Date.now()}`)
105
.then((response) => {
0 commit comments