Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
392 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | /* istanbul ignore next */
|
---|
4 | function setAttributesWithoutAttributes(style, attributes) {
|
---|
5 | var nonce = typeof __webpack_nonce__ !== "undefined" ? __webpack_nonce__ : null;
|
---|
6 |
|
---|
7 | if (nonce) {
|
---|
8 | attributes.nonce = nonce;
|
---|
9 | }
|
---|
10 |
|
---|
11 | Object.keys(attributes).forEach(function (key) {
|
---|
12 | style.setAttribute(key, attributes[key]);
|
---|
13 | });
|
---|
14 | }
|
---|
15 |
|
---|
16 | module.exports = setAttributesWithoutAttributes; |
---|
Note:
See
TracBrowser
for help on using the repository browser.