diff options
author | zeripath <art27@cantab.net> | 2020-07-03 10:55:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-03 10:55:36 +0100 |
commit | ae56411e9f78415745c235fb92fbb7abc139b966 (patch) | |
tree | 20ce8e22055394dbf80ee9355cb5c1a03cb19479 /webpack.config.js | |
parent | cd994f635427388d4e2abb6612e0b830a8f485b9 (diff) | |
download | gitea-ae56411e9f78415745c235fb92fbb7abc139b966.tar.gz gitea-ae56411e9f78415745c235fb92fbb7abc139b966.zip |
Move EventSource to SharedWorker (#12095)
Move EventSource to use a SharedWorker. This prevents issues with HTTP/1.1
open browser connections from preventing gitea from opening multiple tabs.
Also allow setting EVENT_SOURCE_UPDATE_TIME to disable EventSource updating
Fix #11978
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js index 2ed374ba49..72d83522d2 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -52,6 +52,9 @@ module.exports = { serviceworker: [ resolve(__dirname, 'web_src/js/serviceworker.js'), ], + 'eventsource.sharedworker': [ + resolve(__dirname, 'web_src/js/features/eventsource.sharedworker.js'), + ], icons: [ ...glob('node_modules/@primer/octicons/build/svg/**/*.svg'), ...glob('assets/svg/*.svg'), |