diff --git a/.eslintrc.json b/.eslintrc.json index de8eb7c9fa..fd6cc99fbd 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -33,7 +33,6 @@ "no-useless-escape": "off", "no-empty": "off", "@typescript-eslint/no-empty-function": "off", - "no-self-assign": "off", "no-constant-condition": "off", "no-async-promise-executor": "off" } diff --git a/ui/site/src/component/reload.ts b/ui/site/src/component/reload.ts index 58549b9d89..b733f6d3af 100644 --- a/ui/site/src/component/reload.ts +++ b/ui/site/src/component/reload.ts @@ -30,5 +30,5 @@ export const reload = () => { unload.expected = true; lichess.socket.disconnect(); if (location.hash) location.reload(); - else location.href = location.href; + else location.assign(location.href); };