Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Updates for 0.8 #40

Merged
merged 12 commits into from
Mar 5, 2018
Merged

Updates for 0.8 #40

merged 12 commits into from
Mar 5, 2018

Conversation

Rich-Harris
Copy link
Member

General fixes and tweaks, some of which (e.g. config.serviceworker) will depend on Sapper 0.8

@@ -37,8 +37,11 @@ self.addEventListener('fetch', event => {
// don't try to handle e.g. data: URIs
if (!url.protocol.startsWith('http')) return;

// ignore dev server requests
if (url.hostname === self.location.hostname && url.port !== self.location.port) return;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at the moment the host for the dev client is always localhost:${someport} — it should probably be ${window.location.hostname}:${someport} so that debugging on mobile devices etc works

@Rich-Harris
Copy link
Member Author

Seems the tests aren't running on Appveyor (they should have failed)

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.

1 participant