window.getApiBaseUrl = function () { return 'https://cviewlive.com' } // If 1, always use {protocol}://{hostname}/api // window.apiLocationConvention = 1; window.ky_environment = 'test' function uiRedirect() { const { origin, pathname } = window.location if (!/.*\/ui\/.*/.test(pathname)) { window.location = `${origin}/ui/` } } uiRedirect()