Browse files

Merge pull request #277 from qgustavor/patch-1

Fix HTTPS and some no-script cases
  • Loading branch information...
2 parents bc91847 + d0f0722 commit cf8449b3da9c37c954f093b9b28e4819fb43cab8 @peterbraden committed Aug 16, 2015
Showing with 8 additions and 4 deletions.
  1. +8 −4 index.html
View
12 index.html
@@ -2,10 +2,14 @@
<html>
<head>
<title></title>
- <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/documentup/latest.min.js"></script>
+ <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/documentup/0.1.1/documentup.min.js"></script>
<script type="text/javascript">
- DocumentUp.document("peterbraden/node-opencv");
+ if (typeof DocumentUp == 'undefined') {
+ alert('Some resources failed loading: try reloading the page.');
+ } else {
+ DocumentUp.document("peterbraden/node-opencv");
+ }
</script>
</head>
- <body></body>
-</html>
+ <body><noscript>This page requires JavaScript.</noscript></body>
+</html>

0 comments on commit cf8449b

Please sign in to comment.