Skip to content

Commit 2f2061f

Browse files
committed
v11.1.0
1 parent 706e9c2 commit 2f2061f

File tree

7 files changed

+19
-6
lines changed

7 files changed

+19
-6
lines changed

build/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const Gleap = window.Gleap;
22

3-
Gleap.setFrameUrl("http://0.0.0.0:3001");
4-
Gleap.setApiUrl("http://0.0.0.0:9000");
3+
//Gleap.setFrameUrl("http://0.0.0.0:3001");
4+
//Gleap.setApiUrl("http://0.0.0.0:9000");
55

66
Gleap.setDisablePageTracking(true);
77

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export namespace Gleap {
4040
function isOpened(): boolean;
4141
function setApiUrl(apiUrl: string): void;
4242
function setFrameUrl(frameUrl: string): void;
43+
function setBannerUrl(bannerUrl: string): void;
4344
function setMaxNetworkRequests(maxRequests: number): void;
4445
function registerCustomAction(
4546
customAction: (action: { name: string }) => void

published/11.1.0/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

published/latest/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Gleap.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,14 @@ class Gleap {
411411
GleapSession.getInstance().apiUrl = apiUrl;
412412
}
413413

414+
/**
415+
* Set a custom banner url.
416+
* @param {string} bannerUrl
417+
*/
418+
static setBannerUrl(bannerUrl) {
419+
GleapBannerManager.getInstance().setBannerUrl(bannerUrl);
420+
}
421+
414422
/**
415423
* Set a custom frame api url.
416424
* @param {string} frameUrl

src/GleapBannerManager.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Gleap from "./Gleap";
22

33
export default class GleapBannerManager {
4-
bannerUrl = "http://localhost:5173";
4+
bannerUrl = "https://outboundmedia.gleap.io";
55
bannerContainer = null;
66
bannerData = null;
77

@@ -18,6 +18,10 @@ export default class GleapBannerManager {
1818
this.startCommunication();
1919
}
2020

21+
setBannerUrl(url) {
22+
this.bannerUrl = url;
23+
}
24+
2125
startCommunication() {
2226
// Add window message listener.
2327
window.addEventListener("message", (event) => {

0 commit comments

Comments
 (0)