mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Empty commit
This commit is contained in:
parent
330dbf84c3
commit
eba3ae7f33
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user