title: vue router.beforeEach doesn't work on safari
body: <p>I'm trying to use 'router.beforeEach' for checking token.
  chrome can enter in beforeEach, but safari couldn't.</p>
  <p>is there anything I have to know before use 'beforeEach' in safari?
  I'm so confused and this problem makes me crazy.</p>
  <p>here is code. there are meta : {authRequired: true} every components except login component.</p>
  <pre><code>router.beforeEach(function (to, from, next) {
  console.log(&quot;I'm in!!!&quot;)
  let token = VueCookies.get('jwtToken');
  let isAuthenticated = token !== null;
  
  if (to.matched.some(function(routerInfo) {
    return routerInfo.meta.authRequired;
  })) {
    if(!isAuthenticated) {
      if(to.name != 'login') {
        next({name: 'login'});
      }
    }else {
      next();
    }
  }else {
    next();
  }
  })
  </code></pre>
  <p><strong>Google Chorme</strong></p>
  <p><a href="https://i.stack.imgur.com/3loit.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3loit.png" alt="enter image description here" /></a></p>
  <p><strong>Safari</strong> so---------clean....</p>
  <p><a href="https://i.stack.imgur.com/vjXSA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vjXSA.png" alt="enter image description here" /></a></p>
  <p>can I use beforeEach in safari?</p>