fix(web): adjust sourcemap linking pattern used for error reporting within mobile apps

Fixes: #16367

Build-bot: skip build:web release:android release:ios
Test-bot: skip
This commit is contained in:
Joshua Horton 2026-08-13 14:56:33 -05:00
parent 2277196c08
commit bc497a5fcf

View file

@ -42,8 +42,19 @@ export class KeymanSentryManager {
switch(location.protocol) {
case 'http:':
return 'http://' + location.host + '/' + filename;
case 'https:':
// Keyman for Android uses https://appassets.androidplatform.net
// to point to local files. See #16146.
if(this.keymanPlatform == 'android') {
return 'file:///' + filename;
} else {
return 'https://' + location.host + '/' + filename;
}
case 'file:':
return 'file:///' + filename;
// Used within the iOS Keyman engine. See #16136.
case 'keyman-engine:':
return 'file:///' + filename;
default:
return null;
}