Skip to content

Commit d91ce73

Browse files
authored
Merge pull request #37 from puhastudio/docs-setstorage
Correct setStorage docs
2 parents 5958b8c + 9ff9537 commit d91ce73

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)