mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user