Skip to content

Commit

Permalink
[Setup] Handle updated message format when listening for uninstall ev…
Browse files Browse the repository at this point in the history
…ents from the iframe (#460)
  • Loading branch information
dalongi committed Oct 3, 2023
1 parent 417285d commit 3ba5435
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ function cleanConfigCache() {
function handleCommerceExtensionDeletion(message) {
var success = message.success;
if (success) {
let action = message.action;
if (action != null && action === 'delete') {
const messageEvent = message.event;
if (messageEvent === 'CommerceExtension::UNINSTALL') {
// Delete asset ids stored in db instance.
deleteFBAssets();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function cleanConfigCache() {
function handleCommerceExtensionDeletion(message) {
var success = message.success;
if (success) {
let action = message.action;
if (action != null && action === 'delete') {
const messageEvent = message.event;
if (messageEvent === 'CommerceExtension::UNINSTALL') {
// Delete asset ids stored in db instance.
deleteFBAssets();
}
Expand Down

0 comments on commit 3ba5435

Please sign in to comment.