Skip to content
On this page

Athena.webview.utilities

Functions

closePages

Usage

Athena.webview.utilities.closePages(player, pages?): void

Closes all pages if no pages are specified. If pages are specified it only closes those specific pages.

Parameters

NameTypeDefault value
playerPlayerundefined
pages?string[][]

Returns

void

Defined in

server/webview/utilities.ts:22


emit

Usage

Athena.webview.utilities.emit(player, eventName, ...args): void

Emits an event directly to the client's WebView.

Static

Parameters

NameType
playerPlayer
eventNamestring
...argsany[]

Returns

void

Defined in

server/webview/utilities.ts:12

Created by Stuyk | Est. 2020