From 36e641e00168b09e81aad7e234399d06ce12e619 Mon Sep 17 00:00:00 2001
From: toasted-nutbread <toasted-nutbread@users.noreply.github.com>
Date: Sat, 1 Feb 2020 22:57:27 -0500
Subject: getSchemaOrValueType return null

---
 ext/bg/js/json-schema.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'ext/bg/js')

diff --git a/ext/bg/js/json-schema.js b/ext/bg/js/json-schema.js
index 29873b52..c20cb502 100644
--- a/ext/bg/js/json-schema.js
+++ b/ext/bg/js/json-schema.js
@@ -179,14 +179,14 @@ class JsonSchemaProxyHandler {
                     return valueType;
                 }
             }
-            throw new Error(`Ambiguous property type for ${property}`);
+            return null;
         }
 
         if (typeof type === 'undefined') {
             if (typeof value !== 'undefined') {
                 return JsonSchemaProxyHandler.getValueType(value);
             }
-            throw new Error(`No property type for ${property}`);
+            return null;
         }
 
         return type;
-- 
cgit v1.2.3