plugin updates
This commit is contained in:
@@ -7,9 +7,10 @@ import {
|
||||
getOrCreateBackgroundApp,
|
||||
initBackgroundApp,
|
||||
} from '../utils/backgroundAppUtils';
|
||||
import { refreshToken } from '../constants/leadinConfig';
|
||||
import { ProxyMessages } from '../iframe/integratedMessages';
|
||||
|
||||
let embedder: any;
|
||||
|
||||
function deactivatePlugin() {
|
||||
const href = $(domElements.deactivatePluginButton).attr('href');
|
||||
if (href) {
|
||||
@@ -30,8 +31,7 @@ function submitAndDeactivate(e: Event) {
|
||||
|
||||
submitFeedbackForm(domElements.deactivateFeedbackForm)
|
||||
.then(() => {
|
||||
if (feedback && refreshToken) {
|
||||
const embedder = getOrCreateBackgroundApp(refreshToken);
|
||||
if (feedback) {
|
||||
embedder.postMessage({
|
||||
key: ProxyMessages.TrackPluginDeactivation,
|
||||
payload: {
|
||||
@@ -49,6 +49,7 @@ function submitAndDeactivate(e: Event) {
|
||||
}
|
||||
|
||||
function init() {
|
||||
embedder = getOrCreateBackgroundApp();
|
||||
// eslint-disable-next-line no-new
|
||||
new ThickBoxModal(
|
||||
domElements.deactivatePluginButton,
|
||||
|
||||
Reference in New Issue
Block a user