Fix relative path issue
This commit is contained in:
parent
5409e2220a
commit
05aa187f0a
|
|
@ -1,6 +1,12 @@
|
|||
/*jslint browser: true */
|
||||
|
||||
// define correct path for files inclusion
|
||||
var scripts = document.getElementsByTagName('script'),
|
||||
path = scripts[scripts.length - 1].src.split('?')[0],
|
||||
cdn = path.split('/').slice(0, -1).join('/') + '/';
|
||||
|
||||
var tarteaucitron = {
|
||||
"cdn": "",
|
||||
"cdn": cdn,
|
||||
"user": {},
|
||||
"lang": {},
|
||||
"services": {},
|
||||
|
|
|
|||
Loading…
Reference in New Issue