@salesforcedevs/dx-components 1.14.3-alpha → 1.14.3-alpha2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// utils/urlWatcher.ts
|
|
2
|
+
// there's a _lot_ of typescript fuckery happening here, because this whole class violates the laws of nature
|
|
3
|
+
// please do not be alarmed.
|
|
2
4
|
class UrlWatcher {
|
|
5
|
+
// eslint-disable-next-line no-use-before-define
|
|
3
6
|
private static instance: UrlWatcher;
|
|
4
7
|
private lastUrl: string = window.location.href;
|
|
5
8
|
|
|
@@ -57,7 +60,8 @@ class UrlWatcher {
|
|
|
57
60
|
});
|
|
58
61
|
|
|
59
62
|
if (response.status >= 300 && response.status < 400) {
|
|
60
|
-
|
|
63
|
+
// eslint-disable-next-line no-self-assign
|
|
64
|
+
window.location.href = window.location.href;
|
|
61
65
|
}
|
|
62
66
|
} catch (error) {
|
|
63
67
|
console.error('Error checking URL:', error);
|