chore(core/highlight): remove .js extension to support brotli on server (#3002)

This commit is contained in:
Sid Vishnoi 2020-07-07 10:42:47 +05:30 committed by GitHub
parent 9157c953a0
commit 08056816cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ import { fetchBase } from "./text-loader.js";
// Opportunistically preload syntax highlighter
const hint = {
hint: "preload",
href: "https://www.w3.org/Tools/respec/respec-highlight.js",
href: "https://www.w3.org/Tools/respec/respec-highlight",
as: "script",
};
const link = createResourceHint(hint);

View File

@ -1,7 +1,7 @@
// ReSpec Worker v1.0.0
"use strict";
try {
importScripts("https://www.w3.org/Tools/respec/respec-highlight.js");
importScripts("https://www.w3.org/Tools/respec/respec-highlight");
} catch (err) {
console.error("Network error loading highlighter", err);
}