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