Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1443)

Unified Diff: dart/site/try/nossl.js

Issue 465903002: Work around AppCache issues to switch to SSL. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/site/try/nossl.js
diff --git a/dart/site/try/nossl.js b/dart/site/try/nossl.js
new file mode 100644
index 0000000000000000000000000000000000000000..50608b9e639853e997e13fe9c52f35c92896f1cf
--- /dev/null
+++ b/dart/site/try/nossl.js
@@ -0,0 +1,19 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+try {
+ document.location = 'https://try.dartlang.org/';
+} catch (e) {
+ // Ignored.
+}
+
+document.documentElement.innerHTML = (
+'<head>' +
+'<meta charset="utf-8">' +
+'<meta http-equiv="refresh" content="0;URL=\'https://try.dartlang.org/\'" />' +
+'<title>Redirecting</title>' +
+'</head>' +
+'<body>' +
+'<p>This page has moved to <a href="https://try.dartlang.org/">https://try.dartlang.org/</a>.</p>' +
+'</body>');

Powered by Google App Engine
This is Rietveld 408576698