Skip to content

Commit 3cc7456

Browse files
author
admin
committed
fix: timer
1 parent 3e37cb6 commit 3cc7456

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

  • packages/extension/src/ui/action

packages/extension/src/ui/action/App.vue

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
/>
1616
</div>
1717
<div>
18-
<a ref="toggle" class="app__menu-link" @click="toggleMoreMenu">
18+
<a
19+
ref="toggle"
20+
class="app__menu-link"
21+
@click="toggleMoreMenu"
22+
v-show="hideSomething"
23+
>
1924
<more-icon />
2025
</a>
2126
<div v-show="isOpenMore" ref="dropdown" class="app__menu-dropdown">
@@ -232,6 +237,7 @@ const isLoading = ref(true);
232237
const currentVersion = __PACKAGE_VERSION__;
233238
const latestVersion = ref('');
234239
const enabledTestnetworks = ref<string[]>([]);
240+
const hideSomething = ref(true);
235241
/** -------------------
236242
* Updates
237243
-------------------*/
@@ -416,6 +422,11 @@ onMounted(async () => {
416422
const isInitialized = await kr.isInitialized();
417423
if (isInitialized) {
418424
const _isLocked = await isKeyRingLocked();
425+
if (__IS_SAFARI__) {
426+
setInterval(() => {
427+
isKeyRingLocked(); // keepalive safari action window
428+
}, 1000 * 5);
429+
}
419430
if (_isLocked) {
420431
router
421432
.push({ name: 'lock-screen' })
@@ -440,11 +451,6 @@ onMounted(async () => {
440451
}
441452
});
442453
}, 2000);
443-
setInterval(() => {
444-
isKeyRingLocked().then(res => {
445-
console.log('am I locked?', res);
446-
});
447-
}, 1000 * 5);
448454
}
449455
initUpdateState();
450456
} else {

0 commit comments

Comments
 (0)