rm CNAME(only 1 repo is ok). add startsWith()

This commit is contained in:
LucasWang
2014-03-14 17:52:58 +08:00
parent bc68b11ffc
commit 44e8a582fd
2 changed files with 6 additions and 2 deletions
-1
View File
@@ -1 +0,0 @@
www.qtav.org
+6 -1
View File
@@ -16,7 +16,12 @@
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script type="text/javascript">
if (location.href == "http://wang-bin.github.io/QtAV") {
if(!String.prototype.startsWith){
String.prototype.startsWith = function (str) {
return !this.indexOf(str);
}
}
if (location.href.startsWith("http://wang-bin.github.io/QtAV")) {
window.location.replace("http://wang-bin.github.io/qtav.org");
}
</script>