We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7c37b0 commit 1ff4434Copy full SHA for 1ff4434
src/default.js
@@ -680,13 +680,17 @@
680
try {
681
path = overwrite || decodeURIComponentFunc(loc.pathname);
682
} catch (e) {
683
- // Do nothing
+ warn(error);
684
}
685
686
/** if pathoverwriter **/
687
var pathOverwriterFunction = window[pathOverwriter];
688
if (isFunction(pathOverwriterFunction)) {
689
- path = pathOverwriterFunction.call(window, path);
+ try {
690
+ path = pathOverwriterFunction.call(window, { path: path }) || path;
691
+ } catch (error) {
692
+ warnInFunction("path", error);
693
+ }
694
695
/** endif **/
696
0 commit comments