Archived
1
0

Inject base path into manifest

Might fix #1181, although not for the reasons I initially
thought (because the URLs are resolved from the manifest path, not the
path of the current page). This should ensure that the URLs used by the
manifest are always correct regardless of the manifest's path.
This commit is contained in:
Asher
2020-02-18 12:57:45 -06:00
parent 39a57700bc
commit d47591e253
2 changed files with 17 additions and 3 deletions

View File

@ -1,12 +1,12 @@
{
"name": "code-server",
"short_name": "code-server",
"start_url": "../../../..",
"start_url": "{{BASE}}",
"display": "fullscreen",
"background-color": "#fff",
"description": "Run editors on a remote server.",
"icons": [{
"src": "./code-server.png",
"src": "{{BASE}}/static-{{COMMIT}}/src/browser/media/code-server.png",
"sizes": "384x384",
"type": "image/png"
}]