PluginProbe
HubSpot All-In-One Marketing – Forms, Popups, Live Chat / 11.3.75
HubSpot All-In-One Marketing – Forms, Popups, Live Chat v11.3.75
11.3.75 11.3.73 11.3.71 11.3.70 11.3.69 11.3.64 11.3.65 11.3.62 11.3.61 11.3.56 11.3.58 11.0.31 11.0.52 11.0.54 11.0.56 11.0.58 11.0.7 11.1.10 11.1.11 11.1.13 11.1.14 11.1.15 11.1.2 11.1.20 11.1.21 All 73 releases
← All changes | scripts/entries/feedback.ts +4 -3 11.1.2111.3.75 View file →
@@ -6,11 +6,12 @@
6 6 import {
7 7 getOrCreateBackgroundApp,
8 8 initBackgroundApp,
9 9 } from '../utils/backgroundAppUtils';
10 -import { refreshToken } from '../constants/leadinConfig';
11 10 import { ProxyMessages } from '../iframe/integratedMessages';
12 11
12 +let embedder: any;
13 +
13 14 function deactivatePlugin() {
14 15 const href = $(domElements.deactivatePluginButton).attr('href');
15 16 if (href) {
16 17 window.location.href = href;
@@ -29,10 +30,9 @@
29 30 .find(field => field.name === 'feedback');
30 31
31 32 submitFeedbackForm(domElements.deactivateFeedbackForm)
32 33 .then(() => {
33 - if (feedback && refreshToken) {
34 - const embedder = getOrCreateBackgroundApp(refreshToken);
34 + if (feedback && embedder) {
35 35 embedder.postMessage({
36 36 key: ProxyMessages.TrackPluginDeactivation,
37 37 payload: {
38 38 type: feedback.value.trim().replace(/[\s']+/g, '_'),
@@ -48,8 +48,9 @@
48 48 });
49 49 }
50 50
51 51 function init() {
52 + embedder = getOrCreateBackgroundApp();
52 53 // eslint-disable-next-line no-new
53 54 new ThickBoxModal(
54 55 domElements.deactivatePluginButton,
55 56 'leadin-feedback-container',