From 66545235e63aed4c41f47092c7ba91e8b9109245 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Wed, 19 Aug 2020 15:36:16 -0700 Subject: [PATCH] web: small fix to lab when running locally --- docs/lab/font-files.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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