use ultraviolet.script values
This commit is contained in:
parent
6cb068740f
commit
f905b01477
1 changed files with 4 additions and 4 deletions
|
|
@ -178,7 +178,7 @@ class UVServiceWorker extends Ultraviolet.EventEmitter {
|
||||||
switch (request.destination) {
|
switch (request.destination) {
|
||||||
case 'script':
|
case 'script':
|
||||||
case 'worker':
|
case 'worker':
|
||||||
responseCtx.body = `if (!self.__uv && self.importScripts) importScripts('${__uv$config.bundle}', '${__uv$config.config}', '${__uv$config.handler}');\n`;
|
responseCtx.body = `if (!self.__uv && self.importScripts) importScripts('${ultraviolet.bundleScript}', '${ultraviolet.configScript}', '${ultraviolet.handlerScript}');\n`;
|
||||||
responseCtx.body += ultraviolet.js.rewrite(
|
responseCtx.body += ultraviolet.js.rewrite(
|
||||||
await response.text()
|
await response.text()
|
||||||
);
|
);
|
||||||
|
|
@ -201,9 +201,9 @@ class UVServiceWorker extends Ultraviolet.EventEmitter {
|
||||||
{
|
{
|
||||||
document: true,
|
document: true,
|
||||||
injectHead: ultraviolet.createHtmlInject(
|
injectHead: ultraviolet.createHtmlInject(
|
||||||
this.config.handler,
|
ultraviolet.handlerScript,
|
||||||
this.config.bundle,
|
ultraviolet.bundleScript,
|
||||||
this.config.config,
|
ultraviolet.configScript,
|
||||||
this.bareClient.data,
|
this.bareClient.data,
|
||||||
ultraviolet.cookie.serialize(
|
ultraviolet.cookie.serialize(
|
||||||
cookies,
|
cookies,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue