chore: use __ANDROID__ and __IOS__ throughout (#10446)

Standardizes usage for more macro style removal during bundling for target platforms.
[skip ci]
This commit is contained in:
farfromrefuge
2023-11-25 16:34:25 +00:00
committed by GitHub
parent 48b1856d6c
commit 40b2a6a6db
21 changed files with 52 additions and 52 deletions

View File

@@ -61,7 +61,7 @@ export class ScopeError extends Error {
formattedMessage = message || inner.message || undefined;
}
super(formattedMessage);
this.stack = global.isAndroid ? 'Error: ' + this.message + '\n' + inner.stack.substr(inner.stack.indexOf('\n') + 1) : inner.stack;
this.stack = __ANDROID__ ? 'Error: ' + this.message + '\n' + inner.stack.substr(inner.stack.indexOf('\n') + 1) : inner.stack;
this.message = formattedMessage;
}
}