mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 02:41:22 +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"
|
v-model="alert.show"
|
||||||
:timeout="-1"
|
:timeout="-1"
|
||||||
class="ma-4 desktop-only"
|
class="ma-4 desktop-only"
|
||||||
|
transition="slide-y-reverse-transition"
|
||||||
color="primary"
|
color="primary"
|
||||||
bottom
|
bottom
|
||||||
left
|
left
|
||||||
text
|
text
|
||||||
>
|
>
|
||||||
<v-icon color="primary" class="mr-4">mdi-alert-circle-outline</v-icon>
|
<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 }">
|
<template #action="{ attrs }">
|
||||||
<v-btn
|
<v-btn
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
color="primary"
|
color="primary"
|
||||||
flat
|
text
|
||||||
icon
|
icon
|
||||||
@click="alert.show = false"
|
@click="alert.show = false"
|
||||||
>
|
>
|
||||||
@@ -92,6 +93,12 @@ export default {
|
|||||||
this.alert.show = true;
|
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);
|
}, 1000);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user