Elaborate what won't work over an insecure domain

Closes #997.
This commit is contained in:
Asher 2020-03-03 13:10:32 -06:00
parent c54450941c
commit 8d934be6dc
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -444,7 +444,7 @@ index d0f6e6b18a..1966fd297d 100644
- -
diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
new file mode 100644 new file mode 100644
index 0000000000..1e6bca3b52 index 0000000000..95e70869f2
--- /dev/null --- /dev/null
+++ b/src/vs/server/browser/client.ts +++ b/src/vs/server/browser/client.ts
@@ -0,0 +1,224 @@ @@ -0,0 +1,224 @@
@ -559,7 +559,7 @@ index 0000000000..1e6bca3b52
+ if (!window.isSecureContext) { + if (!window.isSecureContext) {
+ (services.get(INotificationService) as INotificationService).notify({ + (services.get(INotificationService) as INotificationService).notify({
+ severity: Severity.Warning, + severity: Severity.Warning,
+ message: 'code-server is being accessed over an insecure domain. Some functionality may not work as expected.', + message: 'code-server is being accessed over an insecure domain. Web views, the clipboard, and other functionality will not work as expected.',
+ actions: { + actions: {
+ primary: [{ + primary: [{
+ id: 'understand', + id: 'understand',