diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-10-31 18:16:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 18:16:27 +0100 |
commit | 39716183ac557610bf1e8c48b0663b2da1f570e7 (patch) | |
tree | bf693f02c46274cad5791102ef5012a4daa67ce4 /tools/wpt/runner.ts | |
parent | 646afdf259e9e25b59c5305aff231e131ea2fc52 (diff) |
feat(ext/web): EventSource (#14730)
Closes #10298
---------
Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com>
Diffstat (limited to 'tools/wpt/runner.ts')
-rw-r--r-- | tools/wpt/runner.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/wpt/runner.ts b/tools/wpt/runner.ts index fb39ddfa4..472449712 100644 --- a/tools/wpt/runner.ts +++ b/tools/wpt/runner.ts @@ -186,7 +186,10 @@ async function generateBundle(location: URL): Promise<string> { if (title) { const url = new URL(`#${inlineScriptCount}`, location); inlineScriptCount++; - scriptContents.push([url.href, `globalThis.META_TITLE="${title}"`]); + scriptContents.push([ + url.href, + `globalThis.META_TITLE=${JSON.stringify(title)}`, + ]); } for (const script of scripts) { const src = script.getAttribute("src"); |