mirror of
https://github.com/utterance/utterances.git
synced 2024-08-17 03:00:23 +03:00
parent
a866ca8774
commit
630e3d9553
@ -12,7 +12,7 @@ if (script === undefined) {
|
||||
const attrs: { [name: string]: string; } = {};
|
||||
for (let i = 0; i < script.attributes.length; i++) {
|
||||
const attribute = script.attributes.item(i)!;
|
||||
attrs[attribute.name] = attribute.value;
|
||||
attrs[attribute.name.replace(/^data-/, '')] = attribute.value;
|
||||
}
|
||||
|
||||
// gather page attributes
|
||||
|
Loading…
Reference in New Issue
Block a user