Skip to content
On this page

Runtime API

These APIs are designed to use inside League Client with Pengu Loader plugin runtime.

window.openDevTools(remote?)

functionsince v0.3

Call this function to open the built-in Chrome DevTools window.

Example:

js
window.openDevTools()     // built-in DevTools
window.openDevTools(true) // remote DevTools

window.openAssetsFolder()

functionsince v0.6deprecated

Call this function to open the assets folder in new File Explorer window.

Example:

js
window.openAssetsFolder()

window.openPluginsFolder(path?)

functionsince v1.0

Call this function to open the plugins folder in new File Explorer window.

If path is given, it will open the path with respect to the plugins folder.

Example:

js
window.openPluginsFolder()
window.openPluginsFolder("/plugin-demo/config")

window.reloadClient()

functionsince v1.0.4

Call this function to reload the Client and ignore caching.

Example:

js
window.reloadClient()

window.restartClient()

functionsince v1.0.5

Call this function to restart the Client (entire the UX processes).

Example:

js
window.restartClient()

window.getScriptPath()

functionsince v1.1.0

Call this function get the current script path.

Example:

js
// https://plugins/your-plugin/index.js
window.getScriptPath()

window.__llver

stringsince v0.6deprecated

This property returns the current version of Pengu Loader.

Example:

js
console.log(window.__llver) // 0.6.0
console.log(`You are using Pengu Loader v${window.__llver}`)

TIP

Since v1.1.0, this property has been deprecated. Please use Pengu.version instead.

Released under the WTF License.