We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8666b01 commit f613188Copy full SHA for f613188
packages/less/src/less-browser/utils.js
@@ -9,6 +9,7 @@ export function extractId(href) {
9
}
10
11
export function addDataAttr(options, tag) {
12
+ if(!tag) return; // in case of tag is null or undefined
13
for (const opt in tag.dataset) {
14
if (tag.dataset.hasOwnProperty(opt)) {
15
if (opt === 'env' || opt === 'dumpLineNumbers' || opt === 'rootpath' || opt === 'errorReporting') {
0 commit comments