@blockprotocol/core
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -31,3 +31,6 @@ "use strict"; | ||
} | ||
if (!(event.target instanceof HTMLElement)) { | ||
const containingWindow = event.target.ownerDocument | ||
.defaultView; | ||
if (!containingWindow || | ||
!(event.target instanceof containingWindow.HTMLElement)) { | ||
throw new Error("'blockprotocolmessage' event must be sent from an HTMLElement."); | ||
@@ -34,0 +37,0 @@ } |
@@ -28,3 +28,6 @@ import { CoreHandler } from "./core-handler"; | ||
} | ||
if (!(event.target instanceof HTMLElement)) { | ||
const containingWindow = event.target.ownerDocument | ||
.defaultView; | ||
if (!containingWindow || | ||
!(event.target instanceof containingWindow.HTMLElement)) { | ||
throw new Error("'blockprotocolmessage' event must be sent from an HTMLElement."); | ||
@@ -31,0 +34,0 @@ } |
{ | ||
"name": "@blockprotocol/core", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Implementation of the Block Protocol Core specification for blocks and embedding applications", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
279098
2741