Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 10a8d90

Browse files
Better safe than sorry
1 parent f9e5084 commit 10a8d90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/storage/storage.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
UploadFileResult
99
} from "./storage";
1010

11-
const gmsTasks = (<any>com.google.android.gms).tasks;
11+
const gmsTasks = com.google.android.gms ? (<any>com.google.android.gms).tasks : undefined;
1212

1313
function getStorageRef(reject, arg) {
1414
if (typeof(com.google.firebase.storage) === "undefined") {

0 commit comments

Comments
 (0)