Detect NWJS correctly

Former-commit-id: 8d9f3366dfe3b6c2243993dc753026512b10053c [formerly ac45642bab2de685d6ecbf400e62fe9485f99e61 [formerly 4a92919e023e524e0c2606f572c773bf7bfafa70]]
Former-commit-id: 2d790d949def04e50c530c85ca0c7de231247c25 [formerly 0f30b3e757f49b8cb911634774808413cda665dd]
Former-commit-id: 4b8cd6da5b487633630289afc61d7f65e5b55215
This commit is contained in:
Jaifroid 2022-06-14 21:13:50 +01:00
parent fff18a027e
commit 44cd51a39f

View File

@ -805,7 +805,7 @@ define(['jquery', 'zimArchiveLoader', 'uiUtil', 'util', 'utf8', 'cache', 'images
appType.innerHTML = /^(?=.*PWA).*UWP/.test(params.appType) &&
/^https:/i.test(location.protocol) ? 'UWP (PWA) ' :
/UWP/.test(params.appType) ? 'UWP ' :
/NWJS/.test(params.appType) ? 'NWJS ' :
window.nw ? 'NWJS ' :
/Electron/.test(params.appType) ? 'Electron ' :
/PWA/.test(params.appType) ? 'PWA ' : '';
var update = document.getElementById('update');