// Fix for window.top access if (window.top !== window.self) // Allow addon 1211 to access top only if same origin try window.top.document; catch (e) console.warn("Meteor rejects addon 1211 top: cross-origin frame blocked"); // Re-initialize addon in local context initAddon1211Locally();
function validateAddon(addonId) if(addonId === 1211) // Fallback to self if top is unavailable const targetContext = (typeof top !== 'undefined' && top) ? top : self; return targetContext; meteor rejects addon 1211 top
Replace it with: