]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
fix: work on Edge by adding an argument to catch (#383)
author瓦姆乌·湫曗 <autumnsilverleaves@gmail.com>
Fri, 24 Jul 2020 07:09:29 +0000 (15:09 +0800)
committerGitHub <noreply@github.com>
Fri, 24 Jul 2020 07:09:29 +0000 (09:09 +0200)
src/scrollBehavior.ts

index 4d955cec5de713d5ed480295ca9db32e1ccf2d72..7f3f10dc1c9b0df57a84f29964c680ec8188ecea 100644 (file)
@@ -113,7 +113,7 @@ export function scrollToPosition(position: ScrollPosition): void {
             // return to avoid other warnings
             return
           }
-        } catch {
+        } catch (err) {
           warn(
             `The selector "${position.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`
           )