1
0
mirror of https://github.com/kognise/water.css.git synced 2025-08-30 08:20:39 +02:00

fix: update code to support IE & Edge Legacy

This commit is contained in:
Jonas Kuske
2020-05-30 02:42:08 +02:00
parent 68834efd73
commit 4b75b3aeb6
2 changed files with 14 additions and 8 deletions

View File

@@ -70,7 +70,10 @@
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-116663597-6"></script>
<script>
window.dataLayer = window.dataLayer || []
const gtag = (...args) => window.dataLayer.push(args)
// eslint-disable-next-line prefer-arrow/prefer-arrow-functions
const gtag = function () {
window.dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', 'UA-116663597-6')
</script>
@@ -118,9 +121,9 @@
Copy to clipboard
</button>
</header>
<pre><code id="link-snippet">Oh noes, the JavaScript hasn't loaded!</code></pre>
<h3>Options</h3>
<form id="theme-form">
<input type="radio" value="auto" checked name="theme" id="theme-auto" />