mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
20 lines
322 B
TypeScript
20 lines
322 B
TypeScript
import { Observable } from 'rxjs/Observable';
|
|
|
|
// declare a stub service
|
|
export class MockHostWindowService {
|
|
|
|
private width: number;
|
|
|
|
constructor(width) {
|
|
this.setWidth(width);
|
|
}
|
|
|
|
setWidth(width) {
|
|
this.width = width;
|
|
}
|
|
|
|
isXs(): Observable<boolean> {
|
|
return Observable.of(this.width < 576);
|
|
}
|
|
}
|