UNPKG
keycloakify-test
Version:
latest (5.8.4-test)
5.8.4-test
5.8.3-test
5.8.2-test
5.8.1-test
5.8.0-test
5.6.9-test
5.6.8-test
5.6.7-test
5.6.6-test
5.6.5-test
5.6.4-test
5.6.3-test
Keycloak theme generator for Reacts app
github.com/garronej/keycloakify
garronej/keycloakify
keycloakify-test
/
src
/
lib
/
tools
/
HTMLElement.prototype.prepend.ts
10 lines
(8 loc)
•
303 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
if
(!
HTMLElement
.
prototype
.
prepend
) {
HTMLElement
.
prototype
.
prepend
=
function
(
childNode
) {
if
(
typeof
childNode ===
"string"
) {
throw
new
Error
(
"Error with HTMLElement.prototype.appendFirst polyfill"
); }
this
.
insertBefore
(childNode,
this
.
firstChild
); }; }