From 3501ee2e01686baf0c607ed0e9473ef42242c251 Mon Sep 17 00:00:00 2001 From: cilame Date: Thu, 24 Mar 2022 13:54:14 +0800 Subject: [PATCH] add --- inject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inject.js b/inject.js index 7b1ded0..d1395d7 100644 --- a/inject.js +++ b/inject.js @@ -272,7 +272,7 @@ function make_v(envs, keys){ } return list } - function is_iteral(value){ + function is_literal(value){ var allc = ['string', 'number', 'boolean', 'undefined'] return allc.indexOf(typeof value) != -1 || value === null } @@ -364,7 +364,7 @@ function make_v(envs, keys){ for (var i = 0; i < plist.length; i++) { try{ var value = window[clazz].prototype[plist[i]] - if (is_iteral(value)){ + if (is_literal(value)){ var _desc = Object.getOwnPropertyDescriptors(window[clazz].prototype)[plist[i]] inner.push(` ${plist[i]}: ${JSON.stringify(_desc)},`) }