You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
406 B
16 lines
406 B
"use strict"; |
|
|
|
/* istanbul ignore next */ |
|
function setAttributesWithoutAttributes(styleElement, attributes) { |
|
var nonce = typeof __webpack_nonce__ !== "undefined" ? __webpack_nonce__ : null; |
|
|
|
if (nonce) { |
|
attributes.nonce = nonce; |
|
} |
|
|
|
Object.keys(attributes).forEach(function (key) { |
|
styleElement.setAttribute(key, attributes[key]); |
|
}); |
|
} |
|
|
|
module.exports = setAttributesWithoutAttributes; |