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

Fix compdemocracy/polis#1686 #1690

Merged
merged 1 commit into from
Jul 10, 2023
Merged
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
4 changes: 2 additions & 2 deletions client-report/src/util/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// it should send requests to that domain.
//
// Otherwise, use the SERVICE_URL environment variable, if set, or default to
// the current document.origin (e.g. "https://mypolis.xyz/").
// the current self.origin (e.g. "https://mypolis.xyz/").

// NOTE: SERVICE_URL is currently not present in the production build via gulp.
// It is only present in the dev build via webpack-dev-server.
Expand All @@ -35,7 +35,7 @@ const getDomainPrefix = () => {

if (serviceUrl) return `${serviceUrl}/`;

return `${document.origin}/`;
return `${self.origin}/`;
};

const urlPrefix = getDomainPrefix();
Expand Down
Loading