aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/browser.ts
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2021-08-19 15:03:11 +0200
committersonartech <sonartech@sonarsource.com>2021-08-20 20:03:09 +0000
commit2d0873e027ff54dbb470c46b76b04f98caa48384 (patch)
tree38b6704ddd0cfddfca4ef35fbe95caf259b17790 /server/sonar-web/src/main/js/helpers/browser.ts
parent6f17541395dcedb52fe54e7755be95f2e5941086 (diff)
downloadsonarqube-2d0873e027ff54dbb470c46b76b04f98caa48384.tar.gz
sonarqube-2d0873e027ff54dbb470c46b76b04f98caa48384.zip
SONAR-15297 Remove all sonar-ui-common initialization logic
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/browser.ts')
-rw-r--r--server/sonar-web/src/main/js/helpers/browser.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/browser.ts b/server/sonar-web/src/main/js/helpers/browser.ts
index e9a8fe5221f..9ae20d2657e 100644
--- a/server/sonar-web/src/main/js/helpers/browser.ts
+++ b/server/sonar-web/src/main/js/helpers/browser.ts
@@ -19,6 +19,8 @@
*/
import { EnhancedWindow } from '../types/browser';
+export const IS_SSR = typeof window === 'undefined';
+
export function getEnhancedWindow() {
return (window as unknown) as EnhancedWindow;
}