mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-22 22:33:01 +01:00
added IE notification
This commit is contained in:
1 parent
156e71fff2
commit
9f59eed452
1 file changed
+9
-2
@@ -30,19 +30,20 @@
|
||||
v-model="alert.show"
|
||||
:timeout="-1"
|
||||
class="ma-4 desktop-only"
|
||||
transition="slide-y-reverse-transition"
|
||||
color="primary"
|
||||
bottom
|
||||
left
|
||||
text
|
||||
>
|
||||
<v-icon color="primary" class="mr-4">mdi-alert-circle-outline</v-icon>
|
||||
<span v-html="alert.html" class="my-auto"></span>
|
||||
<span class="my-auto" v-html="alert.html"></span>
|
||||
|
||||
<template #action="{ attrs }">
|
||||
<v-btn
|
||||
v-bind="attrs"
|
||||
color="primary"
|
||||
flat
|
||||
text
|
||||
icon
|
||||
@click="alert.show = false"
|
||||
>
|
||||
@@ -92,6 +93,12 @@ export default {
|
||||
this.alert.show = true;
|
||||
}
|
||||
}
|
||||
// check for IE browser
|
||||
if (window.navigator.userAgent.indexOf("MSIE") > -1) {
|
||||
this.alert.html = `Looks like you're using <b style="background: #222; border-radius: .5rem; padding: .25rem .5rem;">Internet Explorer</b>. Stop it, get some help.`;
|
||||
this.alert.show = true;
|
||||
}
|
||||
|
||||
}, 1000);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user