Skip to content
Snippets Groups Projects
Unverified Commit 747c58ad authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #1341 from FZJ-INM1-BDA/fix_messagingMethodFallback

fix: fallback if message method not defined
parents 0627d0be 11f3c780
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ export class MessagingService {
if (/^webpack/.test(data.type)) return
if (!data) return
const { method } = data
if (RECOGNISED_NAMESPACES.every(namespace => method.indexOf(namespace) !== 0)) {
if (RECOGNISED_NAMESPACES.every(namespace => (method || '').indexOf(namespace) !== 0)) {
return
}
const src = source as Window
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment