Skip to content

Commit b740f4e

Browse files
authored
Removed mention of .config()
1 parent 5378f62 commit b740f4e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,9 @@ We need to tell the Firebase library we want to _configure_ the project. Firesta
168168

169169
```javascript
170170
const firestack = new Firestack();
171-
firestack.configure()
172-
.then(() => console.log("Project configured and ready to boot"));
173171
```
174172

175-
We can pass _custom_ options with the `configure()` method by passing an object with configuration options. The configuration object will be generated first by the native configuration object, if set and then will be overridden if passed in JS. That is, all of the following key/value pairs are optional if the native configuration is set.
173+
We can pass _custom_ options by passing an object with configuration options. The configuration object will be generated first by the native configuration object, if set and then will be overridden if passed in JS. That is, all of the following key/value pairs are optional if the native configuration is set.
176174

177175
| option | type | Default Value | Description |
178176
|----------------|----------|-------------------------|----------------------------------------|
@@ -191,11 +189,11 @@ We can pass _custom_ options with the `configure()` method by passing an object
191189
For instance:
192190

193191
```javascript
194-
firestack.configure({
192+
const configurationOptions = {
195193
debug: true,
196194
googleAppID: 'sticker-me'
197-
})
198-
.then(() => console.log("Project configured and ready to boot"));
195+
};
196+
const firestack = new Firestack(configurationOptions);
199197
firestack.on('debug', msg => console.log('Received debug message', msg))
200198
```
201199

0 commit comments

Comments
 (0)