Browse Source

set app title from main comp

all-modes
pbca26 8 years ago
parent
commit
6749b83087
  1. 10
      react/src/components/main/main.js
  2. 2
      react/www/index.html

10
react/src/components/main/main.js

@ -23,6 +23,16 @@ class Main extends React.Component {
}
componentDidMount() {
let appVersion;
try {
appVersion = window.require('electron').remote.getCurrentWindow().appBasicInfo;
} catch (e) {}
if (appVersion) {
document.title = `${appVersion.name} (v${appVersion.version})`;
}
Store.dispatch(iguanaActiveHandle());
const _iguanaActiveHandle = setInterval(function() {
Store.dispatch(iguanaActiveHandle());

2
react/www/index.html

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="description" content="bootstrap admin template">
<meta name="author" content="SuperNET Team">
<title>Agama (v0.2.0.21a-beta)</title>
<title>Agama</title>
<link rel="apple-touch-icon" href="assets/images/android-chrome-192x192.png">
<link rel="icon" type="image/png" href="assets/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="assets/images/favicon-194x194.png" sizes="194x194">

Loading…
Cancel
Save