Skip to content

Commit 73d6620

Browse files
authored
[Vue] Sonar: Prefer globalThis over window (#32001)
1 parent b9d1ba6 commit 73d6620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generators/vue/templates/src/main/webapp/app/test-setup.ts.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createI18n } from 'vue-i18n';
66
<%_ } _%>
77

88
beforeAll(() => {
9-
window.location.href = 'https://jhipster.tech/';
9+
globalThis.location.href = 'https://jhipster.tech/';
1010

1111
// Make sure axios is never executed.
1212
axios.interceptors.request.use(request => {

0 commit comments

Comments
 (0)