mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
add UrlHelpers with absoluteJsImportUrl function to convert a path relative to docroot to an absolute url at runtime
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const absoluteJsImportUrl = function(relativeurl)
|
||||
{
|
||||
const absoluteurl = FHC_JS_DATA_STORAGE_OBJECT.app_root
|
||||
+ relativeurl
|
||||
+ '?'
|
||||
+ FHC_JS_DATA_STORAGE_OBJECT.fhcomplete_build_version;
|
||||
return absoluteurl;
|
||||
}
|
||||
|
||||
export { absoluteJsImportUrl };
|
||||
Reference in New Issue
Block a user