diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2021-08-19 15:03:11 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-08-20 20:03:09 +0000 |
commit | 2d0873e027ff54dbb470c46b76b04f98caa48384 (patch) | |
tree | 38b6704ddd0cfddfca4ef35fbe95caf259b17790 /server/sonar-web/src/main/js/helpers/browser.ts | |
parent | 6f17541395dcedb52fe54e7755be95f2e5941086 (diff) | |
download | sonarqube-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.ts | 2 |
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; } |