build: Electron 25 fixes (#415)
This commit is contained in:
Родитель
e8d969b8ae
Коммит
7c113943cd
|
@ -43,7 +43,7 @@ If you have any feedback, please share it with us on Twitter, or join our commun
|
|||
#### Deprecated: `protocol.{register,intercept}{Buffer,String,Stream,File,Http}Protocol`
|
||||
|
||||
The `protocol.register*Protocol` and `protocol.intercept*Protocol` methods have
|
||||
been replaced with [`protocol.handle`](api/protocol.md#protocolhandlescheme-handler).
|
||||
been replaced with [`protocol.handle`](latest/api/protocol.md#protocolhandlescheme-handler).
|
||||
|
||||
The new method can either register a new protocol or intercept an existing
|
||||
protocol, and responses can be of any type.
|
||||
|
|
|
@ -1464,11 +1464,11 @@ For a call of `win.webContents.adjustSelection({ start: 1, end: 5 })`
|
|||
|
||||
Before:
|
||||
|
||||
<img width="487" alt="Image Before Text Selection Adjustment" src="https://user-images.githubusercontent.com/2036040/231761306-cd4e7b15-c2ed-46cf-8e80-10811f6de83e.png">
|
||||
<img width="487" alt="Image Before Text Selection Adjustment" src="https://user-images.githubusercontent.com/2036040/231761306-cd4e7b15-c2ed-46cf-8e80-10811f6de83e.png"/>
|
||||
|
||||
After:
|
||||
|
||||
<img width="487" alt="Image After Text Selection Adjustment" src="https://user-images.githubusercontent.com/2036040/231761169-887eb8ef-06fb-46e4-9efa-898bcb0d6a2b.png">
|
||||
<img width="487" alt="Image After Text Selection Adjustment" src="https://user-images.githubusercontent.com/2036040/231761169-887eb8ef-06fb-46e4-9efa-898bcb0d6a2b.png"/>
|
||||
|
||||
#### `contents.replace(text)`
|
||||
|
||||
|
|
|
@ -322,7 +322,6 @@ module.exports = {
|
|||
'latest/api/structures/custom-scheme',
|
||||
'latest/api/structures/desktop-capturer-source',
|
||||
'latest/api/structures/display',
|
||||
'latest/api/structures/event',
|
||||
'latest/api/structures/extension',
|
||||
'latest/api/structures/extension-info',
|
||||
'latest/api/structures/file-filter',
|
||||
|
|
Загрузка…
Ссылка в новой задаче