unminified version of app.js in the output file

We have been attempting some changes to the code to add a max time allowed and idle timer in courses published in 360.  In the process we have discovered that app.min.js is regenerated every time and the contents are specific to each published course.  To add the required code to achieve our goal, we have to add code to the app.js, which is error prone because the entire javascript is in one long line.  If the unminified version of app.js was available in the output file, it would be easier to manipulate.  Is this possible?

2 Replies
Ben McKenna

Hey Gail,

To my knowledge, the app.min.js is just copied from either of these directories based on what player you're using:

C:\Program Files (x86)\Articulate\360\Storyline\Content\dark-spider\classic\html5\lib\scripts\app.min.js

C:\Program Files (x86)\Articulate\360\Storyline\Content\dark-spider\unified\html5\lib\scripts\app.min.js

If you did a side-by-side comparison of the the app.min.js files across your courses, they should not be any different. So you could either:

a) Update the app.min.js files in your Storyline directory so that everytime you publish a course, they already have the updated .js file

b) Copy and paste the updated app.min.js file to your published output, as they should all be exactly the same

c) If you still feel safer doing this manually for each course, download and install the program Notepad++ - it has a plugin called JSTool, which has a function called JSFormat, allowing you to change a JS file from mini formatting to normal formatting. This should make edits easier.

Hope this helps