Commit aa8aab08 by Mac Stephens

Quick update to refresh

parent 60d7ce4f
...@@ -69,7 +69,10 @@ end; ...@@ -69,7 +69,10 @@ end;
procedure StartApplication; procedure StartApplication;
var
ClientVer: string;
begin begin
ClientVer := TDMConnection.clientVersion;
DMConnection.InitApp( DMConnection.InitApp(
procedure procedure
begin begin
...@@ -102,7 +105,8 @@ begin ...@@ -102,7 +105,8 @@ begin
dlg.showModal(); dlg.showModal();
document.getElementById("refreshBtn").addEventListener("click", function () { document.getElementById("refreshBtn").addEventListener("click", function () {
location.reload(true); // Hard refresh var base = location.origin + location.pathname;
location.replace(base + "?ver=" + ClientVer + "&r=" + Date.now() + location.hash);
}); });
end; end;
end; end;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment