Skip to content

Commit 77e788c

Browse files
Mihaialshakero
Mihai
authored andcommitted
Merge 8#: Improve backward compatibility
1 parent e846d04 commit 77e788c

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

palindrom-redirect.html

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,12 @@
4646
history.pushState(null, null, url);
4747
this.dispatchEvent(
4848
new CustomEvent(
49-
"palindrom-redirect-pushstate",
50-
{
51-
"detail":{"url":url},
52-
"bubbles": true
53-
}
54-
)
55-
);
56-
/* backward compatibility */
57-
this.dispatchEvent(
58-
new CustomEvent(
59-
"puppet-redirect-pushstate",
60-
{
61-
"detail":{"url":url},
62-
"bubbles": true
63-
}
64-
)
49+
`${this.getAttribute('is')}-pushstate`,
50+
{
51+
"detail":{"url":url},
52+
"bubbles": true
53+
}
54+
)
6555
);
6656
}
6757
else {

0 commit comments

Comments
 (0)