Skip to main content

overwolf.extensions.current API

A set of functions providing more information and utilities for the current extension.

Methods Reference

Types Reference

getExtraObject(name, callback)

Version added: 0.80

Retrieves an extra object (providing external APIs) registered in the extension’s manifest.

ParameterTypeDescription
namestringName of the object as it appears in the manifest
callback(Result: GetExtraObjectResult) => voidResult of the request

getManifest(callback)

Version added: 0.80

Returns the current extension’s manifest object.

ParameterTypeDescription
callback(Result: GetManifestResult) => voidResult of the request

Usage Example

Get app version from the manifest and print it to the console.

overwolf.extensions.current.getManifest(function(app){console.log(app.meta.version)})

GetExtraObjectResult Object

ParameterTypeDescription
successbooleaninherited from the "Result" Object
errorstringinherited from the "Result" Object
objectobjectthe extra object if found

Example data: Success


GetManifestResult Object

ParameterTypeDescription
successbooleaninherited from the "Result" Object
errorstringinherited from the "Result" Object
objectobjectthe manifest info

Example data: Success

A callback function which will be called with the status of the request

{
"manifest_version": 1,
"type": "WebApp",
"meta": {
"name": "App Name",
"version": "1.0.0.0",
"minimum-overwolf-version": "0.92.21.0",
"author": "Author",
"icon": "icon.png",
"icon_gray": "icon_gray.png",
"description": ""
},
"permissions": [
"Extensions",
"Hotkeys",
"GameInfo",
"GameControl",
"FileSystem"
],
"channel-id": 0,
"dependencies": null,
"data": {
"externally_connectable": {
"matches": [
"http://*.overwolf.com",
"http://overwolf.com"
]
},
"protocol_override_domains": null,
"force_browser": "NotSet",
"plugins": [
"npSimpleIOPlugin.dll"
],
"game_events": null,
"extra-objects": null,
"hotkeys": null,
"content_scripts": null,
"launch_events": [
{
"event": 1,
"event_data": {
"game_ids": null,
"wait_for_stable_framerate": null
},
"start_minimized": true
}
],
"user_agent": null,
"windows": {
"index": {
"file": "index.html",
"show_in_taskbar": true,
"transparent": true,
"resizable": false,
"show_minimize": true,
"clickthrough": false,
"disable_rightclick": false,
"forcecapture": false,
"show_only_on_stream": false,
"ignore_keyboard_events": false,
"in_game_only": false,
"desktop_only": false,
"disable_restore_animation": false,
"grab_keyboard_focus": false,
"size": {
"width": 910,
"height": 560
},
"start_position": {
"top": 10,
"left": 10
},
"topmost": false
}
},
"start_window": "index"
}
}