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 'trust site' on localhost #491

Merged
merged 5 commits into from Feb 3, 2020
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Upgrade to node 12.11.0

  • Loading branch information
benstrumeyer committed Jan 28, 2020
commit 24d0b6a277d9cb553cf50cfd0db3d23a035ed73b
@@ -112,7 +112,7 @@ const _updateSitePolicy = (state, action) => {
const pageUrlTokens = pageUrl.split('/');
host = pageUrlTokens.length > 2 ? pageUrlTokens[2] : pageHost.replace(/^www\./, '');
} else if (pageHost === 'localhost') {
// Handle localhost port number
// Handle localhost port number.
if (pageUrl.includes(':')) {
const port = pageUrl.split(':');
host = `localhost:${port[port.length - 1]}`;
ProTip! Use n and p to navigate between commits in a pull request.