add force update and build number
This commit is contained in:
15
src/Title.js
15
src/Title.js
@@ -24,6 +24,21 @@ const HELP_TEXT=(
|
|||||||
<a href="https://icomoon.io/#icons" target="_blank" rel="noopener">IcoMoon</a>
|
<a href="https://icomoon.io/#icons" target="_blank" rel="noopener">IcoMoon</a>
|
||||||
等开源项目
|
等开源项目
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
<a onClick={()=>{
|
||||||
|
if('serviceWorker' in navigator) {
|
||||||
|
navigator.serviceWorker.ready.then((reg)=>{
|
||||||
|
console.log('unregister service worker:',reg);
|
||||||
|
reg.unregister();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
setTimeout(()=>{
|
||||||
|
// noinspection SillyAssignmentJS
|
||||||
|
window.location.href=window.location.href;
|
||||||
|
},300);
|
||||||
|
}}>强制更新</a>
|
||||||
|
(当前程序版本 [{process.env.REACT_APP_BUILD_INFO||'---'}] {process.env.NODE_ENV})
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
Reference in New Issue
Block a user