mirror of
https://github.com/koreanbots/core.git
synced 2025-12-17 06:40:24 +00:00
feat: GET OUT IE
This commit is contained in:
parent
52945d03ed
commit
6c2d46968a
@ -23,10 +23,18 @@ class MyDocument extends Document {
|
|||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: `
|
__html: `
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
function gtag(){dataLayer.push(arguments);}
|
function gtag(){window.dataLayer.push(arguments);}
|
||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
|
|
||||||
gtag('config', 'UA-165454387-1');`,
|
gtag('config', 'UA-165454387-1');
|
||||||
|
|
||||||
|
if(/MSIE \\d|Trident.*rv:/.test(navigator.userAgent)) {
|
||||||
|
window.location = 'microsoft-edge:' + window.location;
|
||||||
|
setTimeout(function() {
|
||||||
|
window.location = 'https://go.microsoft.com/fwlink/?linkid=2135547';
|
||||||
|
}, 1);
|
||||||
|
}
|
||||||
|
`,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Head>
|
</Head>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user