plugin updates

This commit is contained in:
Tony Volpe
2024-09-25 09:45:47 -04:00
parent cc870f301f
commit f6021c7c22
245 changed files with 4835 additions and 4671 deletions

View File

@@ -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,