Skip to content

Commit

Permalink
In slow networks requirejs reuquests can timeout. The timeout is set …
Browse files Browse the repository at this point in the history
…not to a higher value (200 secs)
  • Loading branch information
DeepDiver1975 committed Apr 3, 2020
1 parent a0eaa28 commit 5b4782b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/3293
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Set a higher timeout for requirejs

In slow networks requirejs reuquests can timeout. The timeout is set not to a higher value (200 secs)

https://github.com/owncloud/phoenix/pull/3293
4 changes: 4 additions & 0 deletions src/phoenix.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ function requireError (err) {
// TODO: frozen object would be great ...
window.phoenixConfig = config

// requirejs.config({waitSeconds:200}) is not really working ... reason unknown
// we are manipulating requirejs directly
requirejs.s.contexts._.config.waitSeconds = 200

requirejs(apps, loadApps, requireError)
} catch (err) {
router.push('missing-config')
Expand Down

0 comments on commit 5b4782b

Please sign in to comment.