mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-10 04:52:38 +01:00
Make pymk dependent, resolves #1447
This commit is contained in:
parent
312f956b8a
commit
1c0b03492c
@ -327,6 +327,10 @@ val dependentSegments = arrayOf(
|
||||
* Editing images
|
||||
*/
|
||||
"/confirmation/?",
|
||||
/**
|
||||
* Remove entry from "people you may know"
|
||||
*/
|
||||
"/pymk/xout/",
|
||||
/*
|
||||
* Facebook messages have the following cases for the tid query
|
||||
* mid* or id* for newer threads, which can be launched in new windows
|
||||
|
@ -78,16 +78,16 @@ fun FrostWebView.requestWebOverlay(url: String): Boolean {
|
||||
val shouldUseDesktop = url.formattedFbUrl.shouldUseDesktopAgent
|
||||
//already overlay; manage user agent
|
||||
if (userAgentString != USER_AGENT_DESKTOP && shouldUseDesktop) {
|
||||
L.i { "Switch to desktop agent overlay" }
|
||||
L._i { "Switch to desktop agent overlay" }
|
||||
context.launchWebOverlayDesktop(url)
|
||||
return true
|
||||
}
|
||||
if (userAgentString == USER_AGENT_DESKTOP && !shouldUseDesktop) {
|
||||
L.i { "Switch from desktop agent" }
|
||||
L._i { "Switch from desktop agent" }
|
||||
context.launchWebOverlay(url)
|
||||
return true
|
||||
}
|
||||
L.i { "return false switch" }
|
||||
L._i { "return false switch" }
|
||||
return false
|
||||
}
|
||||
L.v { "Request web overlay passed" }
|
||||
|
Loading…
Reference in New Issue
Block a user