Skip to content

Commit 508ea71

Browse files
committed
Check for popouts before running the function
1 parent 0ff04a2 commit 508ea71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class PluginClass {
7878
}
7979
});
8080
});
81-
if (window.WebappUtils.popouts.isPopoutWindow()) {
81+
if (window.WebappUtils.popouts && window.WebappUtils.popouts.isPopoutWindow()) {
8282
store.dispatch(getSidebarContent());
8383
window.WebappUtils.popouts.onMessageFromParent((channel, state) => {
8484
if (channel === 'SEND_RHS_STATE') {

0 commit comments

Comments
 (0)