Skip to content

Commit 71bc065

Browse files
committed
Improve mixed content message
1 parent 9f873e3 commit 71bc065

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bridge/connection.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@ export function isMixedContentScenario(host: string, protocol?: Protocol): boole
5050
* Chrome's `targetAddressSpace` triggers its own Local Network Access
5151
* prompt, so it gets a short nudge. Firefox and Safari have **no**
5252
* programmatic escape hatch — the only realistic options are switching
53-
* to a Chromium-based browser or loading the page over plain HTTP.
53+
* to a Chromium-based browser or running eca-web locally over HTTP.
5454
*/
5555
function mixedContentHintFor(browser: BrowserKind): string {
5656
switch (browser) {
5757
case 'chrome':
5858
return 'Allow the Local Network Access prompt in your browser, then retry.';
5959
case 'firefox':
6060
return 'Firefox blocks HTTPS pages from connecting to private HTTP servers. '
61-
+ 'Try disabling Enhanced Tracking Protection for this site (click the shield icon 🛡️ in the address bar) '
62-
+ 'or use a Chromium-based browser (Chrome, Edge, Brave).';
61+
+ 'Try disabling Enhanced Tracking Protection for this site (click the shield icon 🛡️ in the address bar), '
62+
+ 'use a Chromium-based browser (Chrome, Edge, Brave), or host eca-web locally over HTTP.';
6363
case 'safari':
6464
return 'Safari blocks HTTPS pages from connecting to private HTTP servers. '
65-
+ 'Use a Chromium-based browser (Chrome, Edge, Brave) or access this page over HTTP instead.';
65+
+ 'Use a Chromium-based browser (Chrome, Edge, Brave) or host eca-web locally over HTTP.';
6666
default:
6767
return 'Your browser may be blocking this request (HTTPS → HTTP on a private network). '
68-
+ 'Try using a Chromium-based browser (Chrome, Edge, Brave) or access this page over HTTP instead.';
68+
+ 'Try a Chromium-based browser (Chrome, Edge, Brave) or host eca-web locally over HTTP.';
6969
}
7070
}
7171

0 commit comments

Comments
 (0)