aboutsummaryrefslogtreecommitdiffstats
path: root/demo/dist/demo.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-01-17 11:37:19 +1100
committerSam Potts <sam@potts.es>2019-01-17 11:37:19 +1100
commitf927d26ce7150a12422a28e0c32edbb399632571 (patch)
treef3aeb465f27549fc7de3dc1f9bc49356cab31626 /demo/dist/demo.js
parente8d2f23b81091fb60b70e9785bb18e33d897e77e (diff)
downloadplyr-f927d26ce7150a12422a28e0c32edbb399632571.tar.lz
plyr-f927d26ce7150a12422a28e0c32edbb399632571.tar.xz
plyr-f927d26ce7150a12422a28e0c32edbb399632571.zip
v3.4.8
- Calling customized controls function with proper arguments (thanks @a60814billy)
Diffstat (limited to 'demo/dist/demo.js')
-rw-r--r--demo/dist/demo.js27
1 files changed, 9 insertions, 18 deletions
diff --git a/demo/dist/demo.js b/demo/dist/demo.js
index e3d4e6c2..a2ba21c4 100644
--- a/demo/dist/demo.js
+++ b/demo/dist/demo.js
@@ -4325,30 +4325,21 @@ typeof navigator === "object" && (function () {
} // Google analytics
// For demo site (https://plyr.io) only
- /* eslint-disable */
-
if (env.prod) {
- (function (i, s, o, g, r, a, m) {
- i.GoogleAnalyticsObject = r;
+ window.dataLayer = window.dataLayer || [];
- i[r] = i[r] || function () {
- (i[r].q = i[r].q || []).push(arguments);
- };
+ var gtag = function gtag() {
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
- i[r].l = 1 * new Date();
- a = s.createElement(o);
- m = s.getElementsByTagName(o)[0];
- a.async = 1;
- a.src = g;
- m.parentNode.insertBefore(a, m);
- })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
+ window.dataLayer.push(args);
+ };
- window.ga('create', 'UA-40881672-11', 'auto');
- window.ga('send', 'pageview');
+ gtag('js', new Date());
+ gtag('config', 'UA-132699580-1');
}
- /* eslint-enable */
-
})();
}());