Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In slow networks requirejs reuquests can timeout. The timeout is set … #3293

Merged
merged 1 commit into from
Apr 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 requests can timeout. The timeout is now set 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