MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / _printPlatformInfo

Method _printPlatformInfo

packages/alphatab/src/Environment.ts:802–811  ·  view source on GitHub ↗

* @target web * @partial

(print: (message: string) => void)

Source from the content-addressed store, hash-verified

800 * @partial
801 */
802 private static _printPlatformInfo(print: (message: string) => void) {
803 print(`Platform: ${WebPlatform[Environment.webPlatform]}`);
804 print(`WebPack: ${Environment.isWebPackBundled}`);
805 print(`Vite: ${Environment.isViteBundled}`);
806 if (Environment.webPlatform !== WebPlatform.NodeJs) {
807 print(`Browser: ${navigator.userAgent}`);
808 print(`Window Size: ${window.outerWidth}x${window.outerHeight}`);
809 print(`Screen Size: ${window.screen.width}x${window.screen.height}`);
810 }
811 }
812
813 /**
814 * Prepares the given object to be sent to workers. Web Frameworks like Vue might

Callers 1

printEnvironmentInfoMethod · 0.45

Calls 1

printFunction · 0.85

Tested by

no test coverage detected