lib/browser/history.rb in isomorfeus-preact-22.10.0.rc2 vs lib/browser/history.rb in isomorfeus-preact-22.11.0.rc1
- old
+ new
@@ -25,10 +25,10 @@
def scroll_restoration=(s)
`#@native.scrollRestoration = #{s}`
end
def state
- ::Hash.new(`#@native.state`)
+ `Opal.hash(#@native.state)`
end
else
def back; end
def forward; end
def go(_); end