SUPER NOOB: Error with relative path following tutorial

5 views
Skip to first unread message

cla...@gmail.com

unread,
Apr 17, 2014, 5:20:49 PM4/17/14
to node-...@googlegroups.com
Hi everybody..I've a big noob question...I'm followng this tutorial but I've troubles defining the relative path, every way I've tried I get

Failed to load resource file:///tmp/.org.chromium.Chromium.rI4L6Y/libs/exampl1.js

my project structure is like this


app
  components/
  libs/
    exampl1.js  // a nodejs file
  index.html


in my index I've

 <script src="./libs/exampl1.js"></script>

is it incorrect??..what must be the correct path///thanks!!






Laszlo Z. Antal

unread,
Apr 17, 2014, 6:23:25 PM4/17/14
to node-...@googlegroups.com
Hi,
Either use app:// protocol or just make that into a relative path and remove "./" so the src should look like "libs/example1.js"

Laszlo






--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages