add spec and docs
This commit is contained in:
parent
ad0c86db7a
commit
ae297760af
3 changed files with 42 additions and 4 deletions
|
@ -47,9 +47,10 @@ non-standard schemes can not recognize relative URLs:
|
|||
<img src='test.png'>
|
||||
</body>
|
||||
```
|
||||
|
||||
So if you want to register a custom protocol to replace the `http` protocol, you
|
||||
have to register it as standard scheme:
|
||||
Registering a scheme as standard, will allow access of files through
|
||||
the FileSystem API. Otherwise the renderer will throw a security error for the
|
||||
scheme. So in general if you want to register a custom protocol to replace the
|
||||
`http` protocol, you have to register it as standard scheme:
|
||||
|
||||
```javascript
|
||||
const {app, protocol} = require('electron')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue