commit
333a00bb13
3 changed files with 4 additions and 4 deletions
|
@ -355,7 +355,7 @@ export {login, logout};
|
|||
import User from './user.js';
|
||||
export {User};
|
||||
|
||||
import Githib from './providers/github.js';
|
||||
import Github from './providers/github.js';
|
||||
export {Github};
|
||||
...
|
||||
```
|
||||
|
@ -370,7 +370,7 @@ export {login, logout} from './helpers.js';
|
|||
|
||||
export {default as User} from './user.js';
|
||||
|
||||
export {default as Githib} from './providers/github.js';
|
||||
export {default as Github} from './providers/github.js';
|
||||
...
|
||||
```
|
||||
|
||||
|
|
|
@ -167,7 +167,7 @@ document.cookie = "user=John; max-age=0";
|
|||
|
||||
The cookie should be transferred only over HTTPS.
|
||||
|
||||
**By default, if we set a cookie at `http://site.com`, then it also appears at `https://site.com` and vise versa.**
|
||||
**By default, if we set a cookie at `http://site.com`, then it also appears at `https://site.com` and vice versa.**
|
||||
|
||||
That is, cookies are domain-based, they do not distinguish between the protocols.
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ To do an upgrade, there are two main ways:
|
|||
1. We can compare versions and run per-version operations.
|
||||
2. Or we can get a list of existing object stores as `db.objectStoreNames`. That object is a [DOMStringList](https://html.spec.whatwg.org/multipage/common-dom-interfaces.html#domstringlist), and it provides `contains(name)` method to check for the existance. And then we can do updates depending on what exists.
|
||||
|
||||
Here's the demo of thee second approach:
|
||||
Here's the demo of the second approach:
|
||||
|
||||
```js
|
||||
let openRequest = indexedDB.open("db", 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue