1
0
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:
Allan Wang 2019-07-02 00:08:35 -07:00
parent 312f956b8a
commit 1c0b03492c
No known key found for this signature in database
GPG Key ID: C93E3F9C679D7A56
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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" }