Skip to content

Commit

Permalink
fix(core): load main scripts using relative paths
Browse files Browse the repository at this point in the history
Using absolute urls only worked whe node-red was in top level directory.
  • Loading branch information
kristianheljas committed Mar 1, 2022
1 parent 37332aa commit 90bfce0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nodes/core/index.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script src="/node-red-contrib-z2m/editor/vendor.js"></script>
<script src="/node-red-contrib-z2m/editor/core.js"></script>
<script src="/node-red-contrib-z2m/editor/nodes.js"></script>
<script src="node-red-contrib-z2m/editor/vendor.js"></script>
<script src="node-red-contrib-z2m/editor/core.js"></script>
<script src="node-red-contrib-z2m/editor/nodes.js"></script>
<% if (env.NODE_ENV === 'development') { %>
<script>
(function () {
Expand Down

0 comments on commit 90bfce0

Please sign in to comment.