diff options
author | JustOff <Off.Just.Off@gmail.com> | 2022-02-11 15:27:05 +0200 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2022-02-11 15:27:05 +0200 |
commit | 17b52b6027472e5002dfef8a0607acf2dca80427 (patch) | |
tree | 5d74f3cd0c67e1f884687677221fea6758b32e9e | |
parent | d68ed9b25d7607bfbd344db7e29a53fc36e57e31 (diff) | |
download | github-wc-polyfill-17b52b6027472e5002dfef8a0607acf2dca80427.tar.gz |
Temp fix for GitHub modern ECMAScript mania
Related discussion:
- https://github.com/JustOff/github-wc-polyfill/issues/43
-rw-r--r-- | bootstrap.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap.js b/bootstrap.js index 9e73e93..9057b1a 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -263,6 +263,7 @@ tracingListener.prototype = { try { if (this.site == "github") { data = data.replace("<head>", "<head><script crossorigin=\"anonymous\" integrity=\"sha512-g4ztuyuFPzjTvIqYBeZdHEDaHz2K6RCz4RszsnL3m5ko4kiWCjB9W6uIScLkNr8l/BtC2dYiIFkOdOLDYBHLqQ==\" type=\"application/javascript\" src=\"https://github.githubassets.com/assets/compat-838cedbb.js\"></script>"); + data = data.replace(/<script.+environment-[a-z0-9]+\.js"><\/script>/, "<script crossorigin=\"anonymous\" integrity=\"sha512-hCD+yuHX6Po0snD3NcNEqdv4OBBgSdprm+w6CWjfRf/9iXhbuq+6POgT1cqLuNsrBzO5ZIvbOP/X+NTA2HoxJA==\" type=\"application/javascript\" src=\"https://github.githubassets.com/assets/environment-8420feca.js\"></script>"); data = data.replace("<head>", "<head><script>" + pfBase + "</script>"); if (isSeaMonkey) { data = data.replace("<head>", "<head><script>" + pfSeaMonkey + "</script>"); |