mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
tests: Use relative paths in helper.init()
This avoids problems if Etherpad is served under a path like `/etherpad`.
This commit is contained in:
parent
dfd649dbe9
commit
e144434571
1 changed files with 2 additions and 2 deletions
|
@ -7,11 +7,11 @@ const helper = {};
|
||||||
const jsLibraries = {};
|
const jsLibraries = {};
|
||||||
|
|
||||||
helper.init = (cb) => {
|
helper.init = (cb) => {
|
||||||
$.get('/static/js/vendors/jquery.js').done((code) => {
|
$.get('../../static/js/vendors/jquery.js').done((code) => {
|
||||||
// make sure we don't override existing jquery
|
// make sure we don't override existing jquery
|
||||||
jsLibraries.jquery = `if(typeof $ === 'undefined') {\n${code}\n}`;
|
jsLibraries.jquery = `if(typeof $ === 'undefined') {\n${code}\n}`;
|
||||||
|
|
||||||
$.get('/tests/frontend/lib/sendkeys.js').done((code) => {
|
$.get('lib/sendkeys.js').done((code) => {
|
||||||
jsLibraries.sendkeys = code;
|
jsLibraries.sendkeys = code;
|
||||||
|
|
||||||
cb();
|
cb();
|
||||||
|
|
Loading…
Reference in a new issue