mirror of https://github.com/apache/archiva.git
[MRM-1795] window.archivaRuntimeInfo.version is null in archiva/archiva.js
add a null check! git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1547956 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
afa6d89293
commit
0ced29e3c4
|
@ -22,7 +22,7 @@ appendArchivaVersion=function(){
|
||||||
};
|
};
|
||||||
|
|
||||||
timestampNoCache=function(){
|
timestampNoCache=function(){
|
||||||
if (window.archivaRuntimeInfo.version.match("SNAPSHOT$")){
|
if (window.archivaRuntimeInfo.version && window.archivaRuntimeInfo.version.match("SNAPSHOT$")){
|
||||||
return "&archivaTimestamp="+window.archivaRuntimeInfo.timestamp+(window.archivaRuntimeInfo.devMode?"&_="+jQuery.now():"");
|
return "&archivaTimestamp="+window.archivaRuntimeInfo.timestamp+(window.archivaRuntimeInfo.devMode?"&_="+jQuery.now():"");
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in New Issue