How do I make it so that the project detects when run offline?

How do I make it so that the project detects when run offline?

return location.protocol==="file://"

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.