mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-29 09:17:45 +00:00
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:
parent
2277196c08
commit
bc497a5fcf
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue