Skip to content

Commit 52268c5

Browse files
committed
fix: script
1 parent d506a2f commit 52268c5

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

  • src/shared/libs/plugin-construct/assets

src/shared/libs/plugin-construct/assets/script.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,23 @@ export const script = async (
137137
// const serviceworker = await serviceWorkerPromise;
138138
registerWelcomeToConstructListener(page, log)
139139

140+
// as soon as it appear, without blocking flow
141+
// ignore asking for update
142+
const notNowBtn = page.getByText('Not now')
143+
notNowBtn
144+
.waitFor({
145+
timeout: 0
146+
})
147+
.then(async () => {
148+
return notNowBtn.click()
149+
})
150+
.then(() => {
151+
log('notNowBtn clicked')
152+
})
153+
.catch(async () => {
154+
log('notNowBtn.click() failed')
155+
})
156+
140157
log('after event')
141158

142159
// if (addonsFolder) {
@@ -233,23 +250,6 @@ export const script = async (
233250
log('progress', `${finalText * 100}%`)
234251
}, 500)
235252

236-
// as soon as it appear, without blocking flow
237-
// ignore asking for update
238-
const notNowBtn = page.getByText('Not now')
239-
notNowBtn
240-
.waitFor({
241-
timeout: 0
242-
})
243-
.then(async () => {
244-
return notNowBtn.click()
245-
})
246-
.then(() => {
247-
log('notNowBtn clicked')
248-
})
249-
.catch(async () => {
250-
log('notNowBtn.click() failed')
251-
})
252-
253253
registerInstallButtonListener(page, log)
254254
registerWebglErrorListener(page, log)
255255
registerMissingAddonErrorListener(page, log)

0 commit comments

Comments
 (0)