From 78daa9ab31532369e6ac3a03abd349b5ea499e56 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 7 Oct 2025 20:23:22 +0000 Subject: [PATCH] feat: Implement game event and info listeners This change modifies the ads-sample application to listen for and display game events and game info from the Overwolf API. - Updated `manifest.json` to include `Launch` and `GameInfo` permissions and to specify a list of required game events. - Added "Events" and "Game Info" tabs to `ingame.html` to display the new data. - Implemented event listeners in `ingame.js` for `onNewEvents` and `onInfoUpdates`. - Refactored JavaScript to be runnable in a browser for testing by wrapping Overwolf-specific calls in conditional checks. --- ads-sample/ingame.html | 12 +++++++ ads-sample/ingame.js | 37 ++++++++++++++------- ads-sample/manifest.json | 12 +++++++ ads-sample/window-controls.js | 62 ++++++++++++++++++----------------- server.log | 0 5 files changed, 82 insertions(+), 41 deletions(-) create mode 100644 server.log diff --git a/ads-sample/ingame.html b/ads-sample/ingame.html index ec537d3..88f80e9 100644 --- a/ads-sample/ingame.html +++ b/ads-sample/ingame.html @@ -16,6 +16,8 @@
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Quisquam nisi sit reprehenderit, repudiandae repellendus expedita numquam, quam quibusdam dolor reiciendis mollitia consectetur accusamus ad, distinctio perspiciatis cumque voluptates tenetur maxime.
+