You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object.assign is not supported in IE, which causes quicklink (my example script) to fail in IE11 and older (works everywhere else though - classic IE!).
Originally had dialog as the polyfill so I could see it was working when troubleshooting in Chrome - can be changed to as many polyfills as necessary and supported by https://polyfill.io/v3/url-builder
Copy file name to clipboardExpand all lines: dynamicpolyfill.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
//This is reliant on Promises. If you want to use this, you'll need to (ironically!) polyfill Promises first... or at least until I can work out how to polyfill promises dynamically
2
2
3
-
//Example polyfill requirements and 3rd party script
4
-
varmayneedpolyfilling=['IntersectionObserver','dialog'];//features that your script relies on
3
+
//Example polyfill requirements and 3rd party script (in this case, Google's quicklink)
4
+
varmayneedpolyfilling=['IntersectionObserver','Object.assign'];//features that your script relies on - these two aren't supported in IE
5
5
varscriptiwannause='https://cdn.jsdelivr.net/npm/quicklink@1.0.0/dist/quicklink.umd.js';//the script that you want to use
6
6
7
7
window.onload=functionpageLoaded(){
@@ -12,7 +12,7 @@ window.onload = function pageLoaded() {
12
12
.then(
13
13
function(){
14
14
console.log('Aha! your script is now loaded! Initialising...');
0 commit comments