web: small fix to lab when running locally

This commit is contained in:
Rasmus Andersson 2020-08-19 15:36:16 -07:00
parent b7eafdcdd2
commit 66545235e6

View file

@ -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