Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Fixes #391 offline with service worker not working on new window/tab #441

Merged
merged 2 commits into from
May 3, 2016

Conversation

Epsilonnnn
Copy link
Contributor

Fixes #391 Offline with service worker not working on new window/tab.

Changes proposed in this pull request:

  • when config db try to replicate, if app was offline, then replicate.from function return error, so change .then(loadConfig) to .finally(loadConfig)
  • Added optional creation of the main db as remote or local (depend on app state - online/offline). Before, even if the application is offline, the application attempts to create a remote database, which results in an error.

@jkleinsc
Copy link
Member

jkleinsc commented May 2, 2016

@Epsilonnnn thanks for the PR! I wasn't expecting anyone to work on this issue, but I am thankful that you took interest in it. I'll take a look at your changes.

@jkleinsc
Copy link
Member

jkleinsc commented May 3, 2016

Looks good @Epsilonnnn. I am going to merge it in.

@jkleinsc jkleinsc changed the title Fix issue #391 Fixes #391 offline with service worker not working on new window/tab May 3, 2016
@jkleinsc jkleinsc merged commit cc092a7 into HospitalRun:master May 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants