Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
- <title>Demo app</title>
- </head>
- <body>
- <h1>Hello, world!</h1>
- <script>
- overwolf.games.getRunningGameInfo(
- function(value) {
- console.log(value);
- }
- );
- overwolf.games.events.onNewEvents.addListener(
- function (value) {
- console.log(value);
- alert("onNewEvent called!");
- }
- );
- overwolf.games.events.onInfoUpdates.addListener(
- function (value) {
- console.log(value);
- alert("onInfoUpdates called!");
- }
- );
- overwolf.games.events.onError.addListener(
- function (value) {
- console.log(value);
- alert("onError called!");
- }
- );
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement