This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try pulling the config from the two possible locations
@TrystanLea mentions that `config.js` has been renamed. We'll use both names so the app works on multiple versions. https://community.openenergymonitor.org/t/emoncms-v11-stable-release/19862/10
- Loading branch information
286ab37There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Erm... looks like you've mixed javascript with stylesheets. Did you mean to add appconf.js after line 11 instead?
286ab37There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @MrTimbones
How does this grab you?
f461e17
286ab37There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That'll do.
You could go one step further and check which file exists and only write out that one script:
Or, if you prefer something more concise: (merging php into preceding block)
...but this is probably more trouble than it's worth.
286ab37There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, without having something to test it with I'm mostly hoping that the scripts keep working with the older versions and every time I make it more complicated I know it's more likely to trip up.
I've had as much as 8 years support for old versions of my software at work and that's why they call it work :)