Method: Browser::History#push
- Defined in:
- opal/browser/history.rb
#push(item, data = nil) ⇒ Object
Push an item in the history.
39 40 41 |
# File 'opal/browser/history.rb', line 39 def push(item, data = nil) `#@native.pushState(#{data.to_n}, null, item)` end |