Created
January 15, 2018 21:45
-
-
Save btpoe/6fef297446329b78030e0fcff84358ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Typekit.load({async:true,active:function() { | |
Array.prototype.some.call(document.head.children, function (node) { | |
if (node.tagName === 'STYLE' && node.innerHTML.indexOf('typekit.net') > -1 && node.innerHTML.indexOf('@font-face') > -1) { | |
window.localStorage.setItem('ts.fontFace', node.innerHTML); | |
return true; | |
} | |
return false; | |
}); | |
}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment