Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML5 localhost check #19

Open
subsoap opened this issue Mar 22, 2018 · 1 comment
Open

HTML5 localhost check #19

subsoap opened this issue Mar 22, 2018 · 1 comment
Labels
improvement Improvement of existing feature

Comments

@subsoap
Copy link
Contributor

subsoap commented Mar 22, 2018

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
}

...
@britzl britzl added the improvement Improvement of existing feature label Mar 26, 2018
@subsoap
Copy link
Contributor Author

subsoap commented Mar 28, 2018

This needs an iframe test too I think

@britzl britzl added this to To do in FBInstant development Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement of existing feature
Projects
Development

No branches or pull requests

2 participants