webContents: removing getFavicon api
This commit is contained in:
parent
06834b723b
commit
22c50d0800
5 changed files with 0 additions and 24 deletions
|
@ -277,13 +277,6 @@ registerWebViewElement = ->
|
|||
remote.getGuestWebContents(internal.guestInstanceId)[m] args...
|
||||
proto[m] = createHandler m for m in methods
|
||||
|
||||
# Return dataUrl instead of nativeImage.
|
||||
proto.getFavicon = (args...) ->
|
||||
internal = v8Util.getHiddenValue this, 'internal'
|
||||
return unless internal
|
||||
favicon = remote.getGuestWebContents(internal.guestInstanceId)['getFavicon'] args...
|
||||
favicon.toDataUrl()
|
||||
|
||||
window.WebView = webFrame.registerEmbedderCustomElement 'webview',
|
||||
prototype: proto
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue