mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
chore: added timeout for welcome card appearance
This commit is contained in:
+4
-2
@@ -97,7 +97,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
handleQueries() {
|
handleQueries() {
|
||||||
const query = new URLSearchParams(window.location.search);
|
const query = new URLSearchParams(window.location.search);
|
||||||
|
|
||||||
if (query.get('welcomeCard') == '1') {
|
if (query.get('welcomeCard') == '1') {
|
||||||
this.isWelcomeCardOpen = true;
|
this.isWelcomeCardOpen = true;
|
||||||
}
|
}
|
||||||
@@ -108,7 +108,9 @@ export default defineComponent({
|
|||||||
const storageVersion = StorageManager.getStringValue(STORAGE_VERSION_KEY);
|
const storageVersion = StorageManager.getStringValue(STORAGE_VERSION_KEY);
|
||||||
|
|
||||||
if (isWelcomeCardSeen == false && storageVersion == '') {
|
if (isWelcomeCardSeen == false && storageVersion == '') {
|
||||||
this.isWelcomeCardOpen = true;
|
setTimeout(() => {
|
||||||
|
this.isWelcomeCardOpen = true;
|
||||||
|
}, 1500);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user