Simplify code

This commit is contained in:
Nathanael Anderson
2020-12-05 02:34:16 -06:00
parent cba47c239d
commit a7df49dfcd
2 changed files with 5 additions and 6 deletions

View File

@ -57,9 +57,8 @@ export class Screen {
static mainScreen = new MainScreen(); static mainScreen = new MainScreen();
} }
export class screen { // This retains compatibility with NS6
static mainScreen = Screen.mainScreen; export const screen = Screen;
}
class DeviceRef { class DeviceRef {
private _manufacturer: string; private _manufacturer: string;
@ -148,6 +147,8 @@ class DeviceRef {
} }
export const Device = new DeviceRef(); export const Device = new DeviceRef();
// This retains compatibility with NS6
export const device = Device; export const device = Device;
export const isAndroid = global.isAndroid; export const isAndroid = global.isAndroid;

View File

@ -127,9 +127,7 @@ export class Screen {
} }
// This retains compatibility with NS6 // This retains compatibility with NS6
export class screen { export const screen = Screen;
static mainScreen = Screen.mainScreen;
}
export const isAndroid = global.isAndroid; export const isAndroid = global.isAndroid;
export const isIOS = global.isIOS; export const isIOS = global.isIOS;