extension-fbinstant icon indicating copy to clipboard operation
extension-fbinstant copied to clipboard

HTML5 localhost check

Open subsoap opened this issue 7 years ago • 1 comments

Something like this for mock.lua

local info = sys.get_sys_info()

if info.system_name == "HTML5" then
	local domain = html5.run("window.location.hostname")
	if domain == "localhost" then
		fbinstant = nil
	end
end


if fbinstant then return end
fbinstant = {
	mock = true
}

...

subsoap avatar Mar 22 '18 07:03 subsoap

This needs an iframe test too I think

subsoap avatar Mar 28 '18 02:03 subsoap