UNPKG

aurelia-pal-browser

Version:

The browser-specific implementation of Aurelia's platform abstraction layer.

15 lines (14 loc) 547 B
export const _PLATFORM = { location: window.location, history: window.history, addEventListener(eventName: string, callback: Function, capture: boolean): void { this.global.addEventListener(eventName, callback, capture); }, removeEventListener(eventName: string, callback: Function, capture: boolean): void { this.global.removeEventListener(eventName, callback, capture); }, performance: window.performance, requestAnimationFrame(callback: Function): number { return this.global.requestAnimationFrame(callback); } };