From 89b2fb32c23967597178e58544d3f8db074922cc Mon Sep 17 00:00:00 2001 From: zodern Date: Fri, 10 Sep 2021 17:25:25 -0500 Subject: [PATCH] Fix initial versions on cordova --- tools/cordova/builder.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/cordova/builder.js b/tools/cordova/builder.js index b825318386..765da00f50 100644 --- a/tools/cordova/builder.js +++ b/tools/cordova/builder.js @@ -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) {