From c671e5e3806d7910b321b381e23a472002caf57d Mon Sep 17 00:00:00 2001 From: Niklas Fiekas Date: Wed, 7 Apr 2021 16:43:40 +0200 Subject: [PATCH] fix no-self-assign --- .eslintrc.json | 1 - ui/site/src/component/reload.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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); };