web-remote/src/app/window-ref.service.ts

15 lines
208 B
TypeScript

import { Injectable } from '@angular/core';
function _window(): any {
return window;
}
@Injectable({providedIn: 'root'})
export class WindowRef {
get nativeWindow(): any {
return _window();
}
}