mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-25 13:24:38 +00:00
[5.4.0] Update eslint target to 2017 and do initial fixes (#9135)
* eslint manual fixes - update eslint to 2017 - add self to forbidden globals - fix a few unfixable bugs caught by eslint - convert newer features in twitter-archivist * add eslint plugin to forbid features * import changes from @saqimtiaz * add package.json changes
This commit is contained in:
@@ -25,7 +25,7 @@ exports.startup = function() {
|
||||
var gaMeasurementID = $tw.wiki.getTiddlerText("$:/GoogleAnalyticsMeasurementID","").replace(/\n/g,"");
|
||||
var url ="https://www.googletagmanager.com/gtag/js?id=" + gaMeasurementID;
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
window.gtag = function() { window.dataLayer?.push(arguments); };
|
||||
window.gtag = function() { if(window.dataLayer) window.dataLayer.push(arguments); };
|
||||
window.gtag("js",new Date());
|
||||
window.gtag("config",gaMeasurementID);
|
||||
const scriptElement = window.document.createElement("script");
|
||||
|
||||
Reference in New Issue
Block a user