Skip to content

Commit

Permalink
fix(image-loader): fix rxjs fromEvent issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Sep 17, 2018
1 parent 8838f82 commit ce7f59f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/image-loader.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { ModuleWithProviders, NgModule } from '@angular/core';
import { ImgLoader } from './components/img-loader';
import { ImageLoader } from './providers/image-loader';
import { ImageAttribute } from './components/image-attribute';
import { ImageLoaderConfig } from './providers/image-loader-config';
import { IonicModule } from 'ionic-angular';
import { File } from '@ionic-native/file';
Expand Down
4 changes: 2 additions & 2 deletions src/providers/image-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { DirectoryEntry, File, FileEntry, FileError } from '@ionic-native/file';
import { HttpClient } from '@angular/common/http';
import { normalizeURL, Platform } from 'ionic-angular';
import { ImageLoaderConfig } from './image-loader-config';
import { Observable } from 'rxjs/Observable';
import { fromEvent } from 'rxjs/observable/fromEvent';
import 'rxjs/add/operator/first';

interface IndexItem {
Expand Down Expand Up @@ -64,7 +64,7 @@ export class ImageLoader {
this.isInit = true;
this.throwWarning('You are running on a browser or using livereload, IonicImageLoader will not function, falling back to browser loading.');
} else {
Observable.fromEvent(document, 'deviceready').first().subscribe(res => {
fromEvent(document, 'deviceready').first().subscribe(res => {
if (this.nativeAvailable) {
this.initCache();
} else {
Expand Down

0 comments on commit ce7f59f

Please sign in to comment.