apply polyfill
parent
dc2dd92096
commit
0ede73d229
|
|
@ -4,7 +4,7 @@ const debug = Debug('lot-occupancy-system:polyfills');
|
||||||
export function applyPolyfills() {
|
export function applyPolyfills() {
|
||||||
if (Object.hasOwn === undefined) {
|
if (Object.hasOwn === undefined) {
|
||||||
debug('Applying Object.hasOwn(o, v) polyfill');
|
debug('Applying Object.hasOwn(o, v) polyfill');
|
||||||
hasOwn.shim();
|
Object.hasOwn = hasOwn;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
applyPolyfills();
|
applyPolyfills();
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ const debug = Debug('lot-occupancy-system:polyfills')
|
||||||
export function applyPolyfills(): void {
|
export function applyPolyfills(): void {
|
||||||
if (Object.hasOwn === undefined) {
|
if (Object.hasOwn === undefined) {
|
||||||
debug('Applying Object.hasOwn(o, v) polyfill')
|
debug('Applying Object.hasOwn(o, v) polyfill')
|
||||||
hasOwn.shim()
|
Object.hasOwn = hasOwn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue