Commit b7a4d89f authored by kkhorimoto's avatar kkhorimoto Committed by Commit bot

Fix window.history.go() with no parameter.

BUG=673022

Review-Url: https://codereview.chromium.org/2565673003
Cr-Commit-Position: refs/heads/master@{#437982}
parent 3c8373a8
......@@ -425,7 +425,7 @@ goog.require('__crWeb.message');
invokeOnHost_({'command': 'window.history.forward'});
};
window.history.go = function(delta) {
invokeOnHost_({'command': 'window.history.go', 'value': delta});
invokeOnHost_({'command': 'window.history.go', 'value': delta | 0});
};
window.history.pushState = function(stateObject, pageTitle, pageUrl) {
__gCrWeb.message.invokeOnHost(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment