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

fix: fallback if message method not defined

parent 0627d0be
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