diff options
Diffstat (limited to 'bootstrap/comments/frontend/backendpath.js')
-rw-r--r-- | bootstrap/comments/frontend/backendpath.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstrap/comments/frontend/backendpath.js b/bootstrap/comments/frontend/backendpath.js new file mode 100644 index 0000000..0845116 --- /dev/null +++ b/bootstrap/comments/frontend/backendpath.js @@ -0,0 +1,10 @@ +// Backend path (backendpath.js) +HashOverConstructor.backendPath = (function () { + // Get the HashOver script source URL + var scriptSrc = HashOverConstructor.script.getAttribute ('src'); + + // Parse and set HashOver path + var root = scriptSrc.replace (/\/[^\/]*\/?$/, ''); + + return root + '/backend'; +}) (); |