Skip to content

Commit

Permalink
Remove trailing / to allow operation in web server subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed May 11, 2018
1 parent 16c9266 commit fda2d0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
<login-dialog :user="user" :servers="config.servers"></login-dialog>
</section>
<section id="oc-content" class="uk-offcanvas-content"></section>
<script data-main="/core/js/core.bundle.js" src="/node_modules/requirejs/require.js"></script>
<script data-main="core/js/core.bundle.js" src="node_modules/requirejs/require.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions src/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ OC = new Vue({
*/

_loadConfig () {
$.getJSON('/config.json', (config) => {
$.getJSON('config.json', (config) => {
this.config = config;
this.apps = config.apps;
this.$bus.emit('phoenix:config-loaded');
Expand Down Expand Up @@ -231,7 +231,7 @@ OC = new Vue({
},

appJS( app, file ) {
return ['/apps', app, 'js', file + '.js'].join('/');
return ['apps', app, 'js', file + '.js'].join('/');
},

// -------------------------------------------- registration methods ---
Expand Down

0 comments on commit fda2d0d

Please sign in to comment.