We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 951921e commit e875a34Copy full SHA for e875a34
init.js
@@ -48,7 +48,9 @@ if (!window.__OCP_messageListenerRegistered_v2) {
48
}
49
if (window.MaxExtensionButtonsInit && typeof window.MaxExtensionButtonsInit.updateButtonsForProfileChange === 'function') {
50
// Forward origin so updateButtonsForProfileChange can limit which container(s) are updated.
51
- window.MaxExtensionButtonsInit.updateButtonsForProfileChange(origin);
+ // Default to 'inline' if no origin is specified, as that's the primary UI element
52
+ const effectiveOrigin = origin || 'inline';
53
+ window.MaxExtensionButtonsInit.updateButtonsForProfileChange(effectiveOrigin);
54
55
} catch (e) {
56
// If anything goes wrong, fallback to full re-init on next call
0 commit comments