We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GM_addElement("tagName")
1 parent e635911 commit ad19de5Copy full SHA for ad19de5
src/app/service/content/gm_api/gm_api.ts
@@ -703,7 +703,7 @@ export default class GMApi extends GM_Base {
703
parentNodeId = id;
704
} else {
705
parentNodeId = null;
706
- attrs = tagName as Record<string, string | number | boolean>;
+ attrs = (tagName || {}) as Record<string, string | number | boolean>;
707
tagName = parentNode as string;
708
}
709
if (typeof tagName !== "string") throw new Error("The parameter 'tagName' of GM_addElement shall be a string.");
0 commit comments