Skip to content

Commit

Permalink
Chaning src of webview should always do a load
Browse files Browse the repository at this point in the history
Previously changing src to the same value won't have any effect, which
does not follow the behavior of browsers.
  • Loading branch information
zcbenz committed Apr 29, 2015
1 parent 129cdb7 commit 23afffa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions atom/renderer/lib/web-view/web-view-attributes.coffee
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 23afffa

Please sign in to comment.