change import url from window.location to getCelHost if defined
replace getCelHost with window.getCelHost