Skip to content

Commit 9ff9537

Browse files
committed
Correct setStorage docs since the method does not return a Promise anymore
1 parent 5958b8c commit 9ff9537

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,7 @@ In order to store anything on Firebase, we need to set the storage url provided
485485
The `setStorageUrl()` method accepts a single parameter: your root storage url.
486486

487487
```javascript
488-
firestack.setStorageUrl(`gs://${config.firebase.storageBucket}`)
489-
.then(() => console.log('The storage url has been set'))
490-
.catch(() => console.error('This is weird: something happened...'))
488+
firestack.storage.setStorageUrl(`gs://${config.firebase.storageBucket}`)
491489
```
492490

493491
If the `storageBucket` key is passed as a configuration option, this method is automatically called by default.

0 commit comments

Comments
 (0)