Skip to content

1681-engine / updates / pickWebUpdate

Function: pickWebUpdate() ​

ts
function pickWebUpdate(
   latest, 
   channelUrl, 
   webVersion, 
   nativeBuild
): WebBundle | null;

Defined in: src/updates/pickUpdate.ts:14

The web to take from latest: newer than the web running (webVersion), and needing no native code this app lacks (nativeBuild ≥ the web's minNative). A browser or desktop build with no native layer passes Infinity.

Parameters ​

ParameterType
latestLatestJson
channelUrlstring
webVersionstring
nativeBuildnumber

Returns ​

WebBundle | null

Released under the MIT License.