update sw.js

This commit is contained in:
Harvey Zack committed 2022-05-15 19:45:21 +08:00
1 parent c3f092dc2a
commit ffb74b9717
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -9,7 +9,10 @@ const f = 'function';
const r = 'regexp';
function validElement(value, type, paths) {
return errorHandle(type === s || value instanceof Element, `${paths.join('.')} require '${s}' or 'Element' type`);
return errorHandle(
type === s || type === n || value instanceof Element,
`${paths.join('.')} require '${s}' or 'Element' type`,
);
}
export const ComponentOption = {