Skip to content

Commit

Permalink
Restore version/environment details to about window (#2477)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottnonnenberg-signal committed Jun 21, 2018
1 parent b113cd0 commit 91e7155
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@

<div>
<script>
document.write('v', window.config.version);
document.write('v', window.getVersion());
</script>
</div>
<div>
<script>
var states = [];
const states = [];

if (window.config.environment !== 'production') {
states.push(window.config.environment);
if (window.getEnvironment() !== 'production') {
states.push(window.getEnvironment());
}
if (window.config.appInstance) {
states.push(window.config.appInstance);
if (window.getAppInstance()) {
states.push(window.getAppInstance());
}

document.write(states.join(' - '));
Expand Down
1 change: 1 addition & 0 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ if (config.appInstance) {

window.getTitle = () => title;
window.getEnvironment = () => config.environment;
window.getAppInstance = () => config.appInstance;
window.getVersion = () => config.version;
window.isImportMode = () => config.importMode;
window.getExpiration = () => config.buildExpiration;
Expand Down

0 comments on commit 91e7155

Please sign in to comment.