electron/preload.coffee in flammarion-0.0.10 vs electron/preload.coffee in flammarion-0.0.11
- old
+ new
@@ -1,6 +1,12 @@
window.$remote = require('remote')
+
+window.$search_for = (str) ->
+ if window.find(str, 0, 0, 1)
+ anchor = window.getSelection().anchorNode
+ anchor = anchor.parentNode unless anchor.nodeType == 1
+ anchor.scrollIntoView()