-- Select the platform using the environment.

local global = _ENV or _G

if global.js then
  return require "cosy.platform.js"
else
  return require "cosy.platform.standalone"
end
-- Select the platform using the environment.

if _G.js then
  return require "cosy.platform.js"
else
  return require "cosy.platform.standalone"
end
Use only _G to avoid warning by luacheck.
Use only _G to avoid warning by luacheck.
