Update standard to version 10.0.0 🚀 (#468)
* chore(package): update standard to version 10.0.0 https://greenkeeper.io/ * appease the standard gods
This commit is contained in:
committed by
Yoshua Wuyts
parent
281b351d42
commit
1cec8bbf22
+3
-2
@@ -8,11 +8,12 @@ module.exports = history
|
||||
function history (cb) {
|
||||
assert.equal(typeof cb, 'function', 'sheet-router/history: cb must be a function')
|
||||
window.onpopstate = function () {
|
||||
cb({
|
||||
var obj = {
|
||||
pathname: document.location.pathname,
|
||||
search: document.location.search,
|
||||
href: document.location.href,
|
||||
hash: document.location.hash
|
||||
})
|
||||
}
|
||||
cb(obj)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user