8000 0.3.12 · ulyssear/css-in-js-in-html@01369cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 01369cb

Browse files
Ulysse ARNAUDUlysse ARNAUD
authored andcommitted
0.3.12
1 parent cd953a3 commit 01369cb

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

build/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.min.js.gz

28 Bytes
Binary file not shown.

index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@ function init() {
6666
}
6767
const _entry = Object.entries(entry).sort((a, b) => a[1] - b[1]).filter(e => e[1] !== undefined).map(e => e[0]);
6868

69+
let uuid;
70+
71+
const __entry = _entry.join(',')
72+
73+
if (_entry.includes('query,')) {
74+
uuid = generateUUID('cijih');
75+
element.setAttribute('id', uuid);
76+
}
77+
6978
if (_entry.join(',') === 'events,query,classes') {
7079
const events = split[entry.events].split(',');
7180
let query = split[entry.query].replaceAll(/current\s*,?/g, '#' + uuid + ',');

0 commit comments

Comments
 (0)
0