diff --git a/demo/main.js b/demo/main.js index 408fb354..0f38c306 100755 --- a/demo/main.js +++ b/demo/main.js @@ -5,7 +5,7 @@ Gleap.setApiUrl("http://0.0.0.0:9000"); Gleap.setLanguage("de"); -Gleap.initialize("zhkMPoY1k41yhOus4BRwVKE7Qas5zbyA"); +Gleap.initialize("ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV"); //Gleap.setEnvironment("dev"); /*Gleap.setUrlHandler((url, newTab) => { @@ -27,14 +27,14 @@ Gleap.attachCustomData({ }, }); -Gleap.identify("@testinglukasaa", { +/*Gleap.identify("@testinglukasaa", { name: "Max Doe", email: "lukas+atestaaa@gleap.io", value: 1234, phone: "+49123456789", testing: { "fun": 1123 }, luki: 19283 -}); +});*/ Gleap.log("Test log"); Gleap.log("Test log info", "INFO"); diff --git a/package.json b/package.json index 735fe714..ce51d3a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gleap", - "version": "10.5.0", + "version": "11.0.0", "main": "build/index.js", "scripts": { "start": "webpack serve", diff --git a/src/GleapFrameManager.js b/src/GleapFrameManager.js index 9d2854d6..92cad8b4 100644 --- a/src/GleapFrameManager.js +++ b/src/GleapFrameManager.js @@ -20,7 +20,7 @@ import { widgetMaxHeight } from "./UI"; import { runFunctionWhenDomIsReady } from "./GleapHelper"; export default class GleapFrameManager { - frameUrl = "https://messenger.gleap.io"; + frameUrl = "https://messenger-app.gleap.io"; gleapFrameContainer = null; gleapFrame = null; injectedFrame = false; @@ -116,7 +116,7 @@ export default class GleapFrameManager { autoWhiteListCookieManager = () => { if (window && window.cmp_block_ignoredomains) { - window.cmp_block_ignoredomains.concat(["messenger.gleap.io"]); + window.cmp_block_ignoredomains.concat(["messenger-app.gleap.io"]); } }; diff --git a/src/GleapNotificationManager.js b/src/GleapNotificationManager.js index 207b0838..5a00893c 100644 --- a/src/GleapNotificationManager.js +++ b/src/GleapNotificationManager.js @@ -145,20 +145,28 @@ export default class GleapNotificationManager { }; if (notification.data.news) { + const renderDescription = () => { + if (notification.data.previewText && notification.data.previewText.length > 0) { + return `