mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// imported for definition purposes only
|
||||
import * as httpModule from '../../http';
|
||||
import * as imageSourceModule from '../../image-source';
|
||||
import * as platformModule from '../../platform';
|
||||
import { Screen } from '../../platform';
|
||||
import * as fsModule from '../../file-system';
|
||||
|
||||
import { getFilenameFromUrl } from './http-request-common';
|
||||
@@ -208,9 +208,8 @@ function buildJavaOptions(options: httpModule.HttpRequestOptions) {
|
||||
ensurePlatform();
|
||||
|
||||
// pass the maximum available image size to the request options in case we need a bitmap conversion
|
||||
const screen = platform.screen.mainScreen;
|
||||
javaOptions.screenWidth = screen.widthPixels;
|
||||
javaOptions.screenHeight = screen.heightPixels;
|
||||
javaOptions.screenWidth = Screen.mainScreen.widthPixels;
|
||||
javaOptions.screenHeight = Screen.mainScreen.heightPixels;
|
||||
|
||||
return javaOptions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user