aboutsummaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/haketilo_apis.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/haketilo_apis.js b/content/haketilo_apis.js
index 772e843..ccfec37 100644
--- a/content/haketilo_apis.js
+++ b/content/haketilo_apis.js
@@ -48,9 +48,9 @@
async function on_CORS_bypass(event) {
const name = "haketilo_CORS_bypass";
- console.warn("delme event", event.detail);
-
- if (typeof event.detail.id !== "string" ||
+ if (typeof event.detail !== "object" ||
+ event.detail === null ||
+ typeof event.detail.id !== "string" ||
typeof event.detail.data !== "string") {
console.error(`Haketilo: Invalid detail for ${name}:`,
event.detail);