1
0
Fork 0
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:
Olivier Tassinari 2018-06-23 22:15:27 +02:00 committed by Tim Neutkens
parent 91900d1172
commit f4af03b9c8

View file

@ -53,7 +53,7 @@ export default class Router {
}
}
async onPopState (e) {
onPopState (e) {
if (!e.state) {
// We get state as undefined for two reasons.
// 1. With older safari (< 8) and older chrome (< 34)