[common] switch off version compare for debug
This commit is contained in:
parent
1a2dca4872
commit
3dd26e178b
|
@ -120,6 +120,7 @@ const PageAbout = props => {
|
||||||
|
|
||||||
const About = inject("storeAppOptions")(observer(PageAbout));
|
const About = inject("storeAppOptions")(observer(PageAbout));
|
||||||
About.appVersion = () => (__PRODUCT_VERSION__);
|
About.appVersion = () => (__PRODUCT_VERSION__);
|
||||||
|
About.compareVersions = () => /d$/.test(__PRODUCT_VERSION__);
|
||||||
|
|
||||||
|
|
||||||
export default About;
|
export default About;
|
|
@ -467,7 +467,7 @@ class MainController extends Component {
|
||||||
if (this.changeServerVersion) return true;
|
if (this.changeServerVersion) return true;
|
||||||
const _t = this._t;
|
const _t = this._t;
|
||||||
|
|
||||||
if (About.appVersion() !== buildVersion && !window.compareVersions) {
|
if (About.appVersion() !== buildVersion && !About.compareVersions()) {
|
||||||
this.changeServerVersion = true;
|
this.changeServerVersion = true;
|
||||||
f7.dialog.alert(
|
f7.dialog.alert(
|
||||||
_t.errorServerVersion,
|
_t.errorServerVersion,
|
||||||
|
|
|
@ -160,7 +160,7 @@ module.exports = {
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
'process.env.NODE_ENV': JSON.stringify(env),
|
'process.env.NODE_ENV': JSON.stringify(env),
|
||||||
'process.env.TARGET': JSON.stringify(target),
|
'process.env.TARGET': JSON.stringify(target),
|
||||||
__PRODUCT_VERSION__: JSON.stringify(process.env.PRODUCT_VERSION ? process.env.PRODUCT_VERSION : '6.2.0'),
|
__PRODUCT_VERSION__: JSON.stringify(process.env.PRODUCT_VERSION ? process.env.PRODUCT_VERSION : '6.2.0d'),
|
||||||
__PUBLISHER_ADDRESS__: JSON.stringify('20A-12 Ernesta Birznieka-Upisha street, Riga, Latvia, EU, LV-1050'),
|
__PUBLISHER_ADDRESS__: JSON.stringify('20A-12 Ernesta Birznieka-Upisha street, Riga, Latvia, EU, LV-1050'),
|
||||||
__SUPPORT_EMAIL__: JSON.stringify('support@onlyoffice.com'),
|
__SUPPORT_EMAIL__: JSON.stringify('support@onlyoffice.com'),
|
||||||
__PUBLISHER_PHONE__: JSON.stringify('+371 633-99867'),
|
__PUBLISHER_PHONE__: JSON.stringify('+371 633-99867'),
|
||||||
|
|
Loading…
Reference in a new issue