Empty commit

This commit is contained in:
Git 2014-02-02 08:01:00 +00:00
parent 330dbf84c3
commit eba3ae7f33

View File

@ -1,5 +1,6 @@
var ANDROID_COOKIE_NAME = "mobile_checked_android";
var OTHER_COOKIE_NAME = "mobile_checked_other";
var MOBILE_SITE_HOSTNAME = "m.what.cd";
var MOBILE_SITE_URL = "https://m.what.cd/";
var ANDROID_APP_URL = "http://bit.ly/whatandroid";
@ -24,6 +25,9 @@ var isMobile = {
}
};
if (window.location.hostname == MOBILE_SITE_HOSTNAME) {
setCookie(OTHER_COOKIE_NAME, true, 365);
} else {
if (isMobile.Android()) {
if (!hasCookie(ANDROID_COOKIE_NAME)) {
setCookie(ANDROID_COOKIE_NAME, true, 365);
@ -41,7 +45,7 @@ if (isMobile.Android()) {
}
}
}
}
function setCookie(c_name, value, exdays) {
var exdate = new Date();