This repository has been archived on 2021-02-20. You can view files and clone it, but cannot push or open issues or pull requests.
|
/**
|
|
* Generates a cachebuster string. This only modifies the path in the browser version
|
|
* @param {string} path
|
|
*/
|
|
export function cachebust(path) {
|
|
if (G_IS_BROWSER && !G_IS_STANDALONE && !G_IS_DEV) {
|
|
return "/v/" + G_BUILD_COMMIT_HASH + "/" + path;
|
|
}
|
|
return path;
|
|
}
|