Updates to shortRevision() display stuff. Fixes #1409
parent
3a4b4c2db7
commit
f7b645d580
|
@ -1,5 +1,5 @@
|
|||
import { detectLanguage } from "../i18n";
|
||||
import { shortRevision, attachToRoot } from "../util";
|
||||
import { attachToRoot } from "../util";
|
||||
import { stopIE } from "../util/stop_ie";
|
||||
import I from "i18next";
|
||||
import { DemoIframe } from "./demo_iframe";
|
||||
|
@ -8,7 +8,6 @@ import { DemoIframe } from "./demo_iframe";
|
|||
|
||||
stopIE();
|
||||
|
||||
console.log(shortRevision());
|
||||
const doAttach = () => attachToRoot(DemoIframe);
|
||||
const loadDemo =
|
||||
(config: I.InitOptions) => I.init(config, doAttach);
|
||||
|
|
|
@ -4,13 +4,10 @@
|
|||
*
|
||||
* Try to keep this file light. */
|
||||
import { detectLanguage } from "./i18n";
|
||||
import { shortRevision } from "./util";
|
||||
import { stopIE } from "./util/stop_ie";
|
||||
import { attachAppToDom } from "./routes";
|
||||
import I from "i18next";
|
||||
|
||||
stopIE();
|
||||
|
||||
console.log(shortRevision());
|
||||
|
||||
detectLanguage().then(config => I.init(config, attachAppToDom));
|
||||
|
|
|
@ -39,10 +39,8 @@ export const AdditionalMenu = (props: AccountMenuProps) => {
|
|||
</div>
|
||||
<div className="app-version">
|
||||
<label>{t("VERSION")}</label>:
|
||||
<a
|
||||
href="https://github.com/FarmBot/Farmbot-Web-App"
|
||||
target="_blank">
|
||||
{shortRevision().slice(0, 7)}<p>{shortRevision().slice(7, 8)}</p>
|
||||
<a href="https://github.com/FarmBot/Farmbot-Web-App" target="_blank">
|
||||
{shortRevision().slice(0, 7)}
|
||||
</a>
|
||||
</div>
|
||||
</div>;
|
||||
|
|
Loading…
Reference in New Issue