mirror of
https://github.com/wang-bin/QtAV.git
synced 2026-10-29 03:26:39 +08:00
rm CNAME(only 1 repo is ok). add startsWith()
This commit is contained in:
+6
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user