Skip to content

Commit

Permalink
Fixing problem with inline scripts and CSP, fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed May 22, 2018
1 parent 5b23c2b commit fdf5480
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions edj.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,6 @@ edjdata = {
if (edjApp.is_electron) {
document.querySelector('.platformHelp').style.display = 'none';
document.querySelector('.directorySelection').style.display = 'none';
} else {
document.querySelector('.winpathButton').addEventListener('click', () => { edj.copyFilePath('#winpath'); });
}
12 changes: 6 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h2>Welcome Commander</h2>
<p>Windows:
<span>
<pre class="code" id="winpath">%userprofile%/Saved Games/Frontier Developments/Elite Dangerous/</pre>
<a href="#" onclick="edj.copyFilePath('#winpath');">Copy</a>
<a href="#" class="winpathButton">Copy</a>
</span>
</p>
</div>
Expand All @@ -27,11 +27,11 @@ <h2>Welcome Commander</h2>
<span id="cmdrname">CMDR &lt;Load the journal&gt;</span>
<span id="location">&lt;Load the journal&gt;</span>
</div>
<script type="text/javascript" src="edj.main.js"></script>
<script type="text/javascript" src="edj.gui.js"></script>
<script type="text/javascript" src="edj.utils.js"></script>
<script type="text/javascript" src="edj.logparser.js"></script>
<script type="text/javascript" src="edj.filereader.js"></script>
<script type="text/javascript" src="edj.main.js?v=1.0.2"></script>
<script type="text/javascript" src="edj.gui.js?v=1.0.2"></script>
<script type="text/javascript" src="edj.utils.js?v=1.0.2"></script>
<script type="text/javascript" src="edj.logparser.js?v=1.0.2"></script>
<script type="text/javascript" src="edj.filereader.js?v=1.0.2"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elite-dangerous-webjournalreader",
"version": "1.0.1",
"version": "1.0.2",
"description": "I kinda wanted to see if I could make something in javascript to read the journal files in Elite Dangerous, and I could.",
"main": "start.js",
"scripts": {
Expand Down

0 comments on commit fdf5480

Please sign in to comment.