chore(core/highlight): remove .js extension to support brotli on server (#3002)
This commit is contained in:
parent
9157c953a0
commit
08056816cd
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue