Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (22 sloc) 562 Bytes
<!doctype html>
<html>
<head>
<script src="boomerang.js"></script>
<script>
var v = decodeURIComponent(location.search.replace(/.*v=([0-9.]+).*/, '$1'));
window.onload = function() {
var boom_ver = BOOMR.version.split('.'),
reqd_ver = v.split('.');
if ( (boom_ver[0] < reqd_ver[0]) // javascript will do type coercion
|| (boom_ver[0] == reqd_ver[0] && boom_ver[1] < reqd_ver[1])
|| (boom_ver[0] == reqd_ver[0] && boom_ver[1] == reqd_ver[1] && boom_ver[2] < reqd_ver[2])
)
{
location.reload(true);
}
};
</script>
</head>
<body>
</body>
</html>