fix(tauri.js) revert nullish coalesce addition (#799)

This commit is contained in:
chip
2020-07-10 04:27:03 -07:00
committed by GitHub
parent f340b2914d
commit e7b495133f
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"tauri.js": patch
---
Revert a nullish coalescing operator that changed embedded server/inliner behavior.

View File

@@ -339,7 +339,7 @@ class Runner {
}
}
if ((!cfg.ctx.dev && cfg.tauri.embeddedServer.active) ?? !inlinerEnabled) {
if ((!cfg.ctx.dev && cfg.tauri.embeddedServer.active) || !inlinerEnabled) {
const html = rewriteHtml(originalHtml, domInterceptor)
resolve({ inlinedAssets, html })
} else {