Fix initial versions on cordova

This commit is contained in:
zodern
2021-09-10 17:25:25 -05:00
committed by filipenevola
parent 371a69f731
commit 89b2fb32c2

View File

@@ -500,7 +500,17 @@ export class CordovaBuilder {
program.versionNonRefreshable = AUTOUPDATE_VERSION ||
WebAppHashing.calculateClientHash(
program.manifest, type => type !== "css", configDummy);
program.manifest,
(type, replaceable) => type !== "css" && !replaceable,
configDummy
);
program.versionReplaceable = AUTOUPDATE_VERSION ||
WebAppHashing.calculateClientHash(
program.manifest,
(_type, replaceable) => replaceable,
configDummy
);
}
generateBootstrapPage(applicationPath, program, publicSettings) {