mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
ensure we don't inject a second jquery
This commit is contained in:
parent
d4c851875a
commit
27f9906b1e
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@ var helper = {};
|
||||||
$iframeContainer = $("#iframe-container");
|
$iframeContainer = $("#iframe-container");
|
||||||
|
|
||||||
$.get('/static/js/jquery.js').done(function(code){
|
$.get('/static/js/jquery.js').done(function(code){
|
||||||
jsLibraries["jquery"] = code;
|
// make sure we don't override existing jquery
|
||||||
|
jsLibraries["jquery"] = "if(typeof $ === 'undefined') {\n" + code + "\n}";
|
||||||
|
|
||||||
$.get('/tests/frontend/sendkeys.js').done(function(code){
|
$.get('/tests/frontend/sendkeys.js').done(function(code){
|
||||||
jsLibraries["sendkeys"] = code;
|
jsLibraries["sendkeys"] = code;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue