diff --git a/docs/lab/font-files.js b/docs/lab/font-files.js index d2c9bbe77..30c4429e5 100644 --- a/docs/lab/font-files.js +++ b/docs/lab/font-files.js @@ -8,10 +8,7 @@ var fontFamilyName, fontFamilyNameDisplayVarHinted; ;(()=>{ - let isLocalServer = ( - document.location.hostname == "localhost" || - document.location.hostname == "127.0.0.1" - ); + let isLocalServer = document.location.protocol == "http:" const includeLabLocalFiles = isLocalServer