arbor icon indicating copy to clipboard operation
arbor copied to clipboard

arbor_path fails when script element has no path

Open emlyn opened this issue 11 years ago • 0 comments

If arbor.js is included without any explicit path, as in:

<script src="arbor.js"></script>

then the arbor_path() function incorrectly returns "/arbor.js", which doesn't work when it is not run from the root directory. A workaround is to instead include arbor with:

<script src="./arbor.js"></script>

but perhaps arbor_path() should default to the current directory instead of the root?

emlyn avatar Oct 10 '13 12:10 emlyn