Skip to content

Commit

Permalink
Mitigation of potential backwards compatibility issue (#4078)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardl authored Dec 20, 2024
1 parent 5358527 commit 0f59d53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/services/web-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ class WebComponentSvcClass {
get(target, prop) {
if (prop === target.getCurrentRoute.name) {
return () => {
return new Promise((resolve) => {
const pm = new Promise((resolve) => {
resolve(target.getCurrentRoute());
});
pm.toString = () => {
return target.getCurrentRoute();
};
return pm;
};
}
return target[prop];
Expand Down

0 comments on commit 0f59d53

Please sign in to comment.