Skip to content

Commit ad78365

Browse files
committed
update docs
1 parent 7ba947a commit ad78365

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/api/protocol.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ non-standard schemes can not recognize relative URLs:
5050

5151
Registering a scheme as standard will allow access to files through the
5252
[FileSystem API][file-system-api]. Otherwise the renderer will throw a security
53-
error for the scheme. So in general if you want to register a custom protocol to
54-
replace the `http` protocol, you have to register it as a standard scheme:
53+
error for the scheme.
54+
55+
By default web storage apis (localStorage, sessionStorage, webSQL, indexedDB, cookies)
56+
are disabled for non standard schemes. So in general if you want to register a
57+
custom protocol to replace the `http` protocol, you have to register it as a standard scheme:
5558

5659
```javascript
5760
const {app, protocol} = require('electron')

0 commit comments

Comments
 (0)