mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
Improve wrong arg user message and add ui.windowSize
This commit is contained in:
@@ -16,6 +16,9 @@ import { helpers } from "../Netscript/NetscriptHelpers";
|
||||
|
||||
export function NetscriptUserInterface(): InternalAPI<IUserInterface> {
|
||||
return {
|
||||
windowSize: () => (): [number, number] => {
|
||||
return [window.innerWidth, window.innerHeight];
|
||||
},
|
||||
getTheme: () => (): UserInterfaceTheme => {
|
||||
return { ...Settings.theme };
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user