Skip to content

Commit

Permalink
fix(storage): fix for zone issues on storage (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels authored and davideast committed Aug 24, 2018
1 parent 36a8ff8 commit 441607a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ export function createStorageRef(ref: Reference, scheduler: FirebaseZoneSchedule
return {
getDownloadURL: () => scheduler.keepUnstableUntilFirst(
scheduler.runOutsideAngular(
from(ref.getDownloadURL())
from(scheduler.zone.runOutsideAngular(() => ref.getDownloadURL()))
)
),
getMetadata: () => scheduler.keepUnstableUntilFirst(
scheduler.runOutsideAngular(
from(ref.getMetadata())
from(scheduler.zone.runOutsideAngular(() => ref.getMetadata()))
)
),
delete: () => from(ref.delete()),
Expand Down

0 comments on commit 441607a

Please sign in to comment.