convertPathToURL
Functions
-
isGlobalPath(path) ⇒
boolean -
localPathToGlobal(path) ⇒
string -
convertPathToURL(path) ⇒
string
Given a path, which may be a local path, produce a fully qualified URL
isGlobalPath(path) ⇒ boolean
Kind: global function
| Param | Type |
|---|---|
| path | string |
localPathToGlobal(path) ⇒ string
Kind: global function
| Param | Type |
|---|---|
| path | string |
localPathToGlobal~scope : Window | DedicatedWorkerGlobalScope
Kind: inner property of localPathToGlobal
convertPathToURL(path) ⇒ string
Given a path, which may be a local path, produce a fully qualified URL
Kind: global function
| Param | Type |
|---|---|
| path | string |
Example
'/path' -> 'http://example.com/path'
Example
'some/local/path' -> 'http://example.com/current_path/some/local/path'