diff --git a/main.js b/main.js index 7bf6a3a..b68eb0c 100644 --- a/main.js +++ b/main.js @@ -225,7 +225,7 @@ function createSurflySession(contactId, inviteType) { function sendFollowerLink(followerLink, type, uniquePageId, channelId) { fetch( - "https://nic.surf.ly/follower_link", + "https://admin-api-backend-ef6aeff35287.herokuapp.com/follower_link", { method: "POST", headers: { @@ -376,3 +376,18 @@ function initializeChatNiC() { console.log('Initializing NiC'); } + +var observer = new MutationObserver(function (mutations) { + mutations.forEach(function (mutation) { + console.log("mutation", mutation); + mutation.addedNodes.forEach(function (node) { + console.log("node added 2", node); + }); + mutation.removedNodes.forEach(function (node) { + console.log("node removed 2", node); + }); + + }); +}); +var chat_messenger_frame = document.getElementById("icChat"); +observer.observe(document, { childList: true, subtree: true, attributes: true, characterData: true });