X Tutup
Skip to content

Commit aa863f3

Browse files
KoenLavcodebytere
authored andcommitted
Fix typo in registerSchemesAsPrivileged reference (electron#17214)
1 parent e059851 commit aa863f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/protocol.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ By default web storage apis (localStorage, sessionStorage, webSQL, indexedDB, co
7575
are disabled for non standard schemes. So in general if you want to register a
7676
custom protocol to replace the `http` protocol, you have to register it as a standard scheme.
7777

78-
`protocol.registerSchemesAsPriviliged` can be used to replicate the functionality of the previous `protocol.registerStandardSchemes`, `webFrame.registerURLSchemeAs*` and `protocol.registerServiceWorkerSchemes` functions that existed prior to Electron 5.0.0, for example:
78+
`protocol.registerSchemesAsPrivileged` can be used to replicate the functionality of the previous `protocol.registerStandardSchemes`, `webFrame.registerURLSchemeAs*` and `protocol.registerServiceWorkerSchemes` functions that existed prior to Electron 5.0.0, for example:
7979

8080
**before (<= v4.x)**
8181
```javascript
@@ -88,7 +88,7 @@ webFrame.registerURLSchemeAsPrivileged('scheme2', { secure: true })
8888

8989
**after (>= v5.x)**
9090
```javascript
91-
protocol.registerSchemesAsPriviliged([
91+
protocol.registerSchemesAsPrivileged([
9292
{ scheme: 'scheme1', privileges: { standard: true, secure: true } },
9393
{ scheme: 'scheme2', privileges: { standard: true, secure: true } }
9494
])

0 commit comments

Comments
 (0)
X Tutup