mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Remove unneeded async (#4635)
Unless I'm missing something, we don't need this async. The transpiled JavaScript is much smaller 🚀
This commit is contained in:
parent
91900d1172
commit
f4af03b9c8
|
@ -53,7 +53,7 @@ export default class Router {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async onPopState (e) {
|
onPopState (e) {
|
||||||
if (!e.state) {
|
if (!e.state) {
|
||||||
// We get state as undefined for two reasons.
|
// We get state as undefined for two reasons.
|
||||||
// 1. With older safari (< 8) and older chrome (< 34)
|
// 1. With older safari (< 8) and older chrome (< 34)
|
||||||
|
|
Loading…
Reference in a new issue