-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a few different error pages when legacy file protocol handler errors
- Loading branch information
1 parent
29064a1
commit 027d125
Showing
5 changed files
with
43 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +0,0 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
This is the fallback page used in the Windows 7/8/8.1 legacy build when one of our custom | ||
Electron file protocols return an error. Electron only lets us return a path, so we just | ||
return this file. It's better than an empty screen at least. | ||
This page is served with a CSP of "default-src 'none'" so no inline styles/scripts. | ||
--> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf8"> | ||
<meta name="color-scheme" content="dark light"> | ||
</head> | ||
<body> | ||
<h1>Protocol handler error</h1> | ||
<pre>Unknown legacy file protocol error</pre> | ||
<p>If you can see this page, <a href="https://github.com/TurboWarp/desktop/issues">please open a GitHub issue</a> with all the information above.</p> | ||
</body> | ||
</html> | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf8"> | ||
<meta name="color-scheme" content="dark light"> | ||
</head> | ||
<body> | ||
<h1>Protocol handler error</h1> | ||
<pre>Legacy file protocol: Invalid file extension</pre> | ||
<p>If you can see this page, <a href="https://github.com/TurboWarp/desktop/issues">please open a GitHub issue</a> with all the information above.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf8"> | ||
<meta name="color-scheme" content="dark light"> | ||
</head> | ||
<body> | ||
<h1>Protocol handler error</h1> | ||
<pre>Legacy file protocol: Path traversal blocked</pre> | ||
<p>If you can see this page, <a href="https://github.com/TurboWarp/desktop/issues">please open a GitHub issue</a> with all the information above.</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf8"> | ||
<meta name="color-scheme" content="dark light"> | ||
</head> | ||
<body> | ||
<h1>Protocol handler error</h1> | ||
<pre>Legacy file protocol: Unknown</pre> | ||
<p>If you can see this page, <a href="https://github.com/TurboWarp/desktop/issues">please open a GitHub issue</a> with all the information above.</p> | ||
</body> | ||
</html> |