aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbConst.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-08-08 00:08:22 -0700
committerAllan Wang <me@allanwang.ca>2019-08-08 00:08:22 -0700
commitb71c73565f551b5bcc2712c3cf8fdcd4a9562095 (patch)
tree175e04dfb75fee85bc3bba7c30c7a0fde29e2308 /app/src/main/kotlin/com/pitchedapps/frost/facebook/FbConst.kt
parent7ed4ba701e3e29366f2bd73da010398929829d3e (diff)
downloadfrost-b71c73565f551b5bcc2712c3cf8fdcd4a9562095.tar.gz
frost-b71c73565f551b5bcc2712c3cf8fdcd4a9562095.tar.bz2
frost-b71c73565f551b5bcc2712c3cf8fdcd4a9562095.zip
Revert user agent changes
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/facebook/FbConst.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/facebook/FbConst.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbConst.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbConst.kt
index a83af46c..f6316470 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbConst.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/FbConst.kt
@@ -16,8 +16,6 @@
*/
package com.pitchedapps.frost.facebook
-import com.pitchedapps.frost.utils.Prefs
-
/**
* Created by Allan Wang on 2017-06-01.
*/
@@ -34,8 +32,8 @@ const val FB_HOME_URL = "${FB_URL_BASE}home.php"
const val USER_AGENT_MOBILE =
"Mozilla/5.0 (Linux; Android 8.0.0; ONEPLUS A3000) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Mobile Safari/537.36"
// Desktop agent, for pages like messages
-val USER_AGENT_DESKTOP =
- if (Prefs.singleUserAgent) USER_AGENT_MOBILE else "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Safari/537.36"
+const val USER_AGENT_DESKTOP =
+ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.90 Safari/537.36"
/**
* Animation transition delay, just to ensure that the styles