mirror of
https://github.com/electron/electron.git
synced 2026-01-24 14:57:58 -05:00
Chaning src of webview should always do a load
Previously changing src to the same value won't have any effect, which does not follow the behavior of browsers.
This commit is contained in:
@@ -138,10 +138,7 @@ class SrcAttribute extends WebViewAttribute
|
||||
setupMutationObserver: ->
|
||||
@observer = new MutationObserver (mutations) =>
|
||||
for mutation in mutations
|
||||
oldValue = mutation.oldValue
|
||||
newValue = @getValue()
|
||||
return if oldValue isnt newValue
|
||||
@handleMutation oldValue, newValue
|
||||
@handleMutation mutation.oldValue, @getValue()
|
||||
params =
|
||||
attributes: true,
|
||||
attributeOldValue: true,
|
||||
|
||||
Reference in New Issue
Block a user