mirror of
https://github.com/britzl/monarch.git
synced 2025-06-27 02:17:53 +02:00
Improved screen proxy url detection
This commit is contained in:
parent
4e13660d63
commit
df2a2a62ea
@ -21,7 +21,7 @@ local MSG_ENABLE = hash("enable")
|
||||
local MSG_DISABLE = hash("disable")
|
||||
|
||||
|
||||
local DEPRECATED = hash("/__DEPRECATED__")
|
||||
local DEPRECATED = hash("__DEPRECATED__")
|
||||
|
||||
-- transition messages
|
||||
M.TRANSITION = {}
|
||||
@ -281,13 +281,13 @@ function M.register_proxy(id, proxy, settings)
|
||||
screen.focus_url = settings and settings.focus_url
|
||||
screen.receiver_url = settings and settings.receiver_url
|
||||
screen.auto_preload = settings and settings.auto_preload
|
||||
if screen.transition_url.path == DEPRECATED then
|
||||
if screen.transition_url.fragment == DEPRECATED then
|
||||
screen.transition_url = nil
|
||||
end
|
||||
if screen.focus_url.path == DEPRECATED then
|
||||
if screen.focus_url.fragment == DEPRECATED then
|
||||
screen.focus_url = nil
|
||||
end
|
||||
if screen.receiver_url.path == DEPRECATED then
|
||||
if screen.receiver_url.fragment == DEPRECATED then
|
||||
screen.receiver_url = nil
|
||||
end
|
||||
if screen.auto_preload then
|
||||
|
@ -7,9 +7,9 @@ go.property("popup_on_popup", false)
|
||||
go.property("timestep_below_popup", 1)
|
||||
go.property("screen_keeps_input_focus_when_below_popup", false)
|
||||
go.property("others_keep_input_focus_when_below_screen", false)
|
||||
go.property("transition_url", msg.url("__DEPRECATED__"))
|
||||
go.property("focus_url", msg.url("__DEPRECATED__"))
|
||||
go.property("receiver_url", msg.url("__DEPRECATED__"))
|
||||
go.property("transition_url", msg.url("#__DEPRECATED__"))
|
||||
go.property("focus_url", msg.url("#__DEPRECATED__"))
|
||||
go.property("receiver_url", msg.url("#__DEPRECATED__"))
|
||||
go.property("preload", false)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user