mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Made jquery browser usable in testframework
This commit is contained in:
parent
bd33061c8a
commit
8d8487dfa6
2 changed files with 40 additions and 33 deletions
6
src/static/js/jquery_browser.js
vendored
6
src/static/js/jquery_browser.js
vendored
|
@ -2,6 +2,7 @@
|
|||
Copied from jQuery 1.8, the last jquery version with browser recognition support
|
||||
*/
|
||||
|
||||
(function(){
|
||||
// Use of jQuery.browser is frowned upon.
|
||||
// More details: http://api.jquery.com/jQuery.browser
|
||||
// jQuery.uaMatch maintained for back-compat
|
||||
|
@ -41,4 +42,9 @@ if ( browser.chrome ) {
|
|||
browser.windows = /windows/.test(userAgent);
|
||||
browser.mobile = /mobile/.test(userAgent) || /android/.test(userAgent);
|
||||
|
||||
if(typeof exports !== 'undefined'){
|
||||
exports.browser = browser;
|
||||
} else{
|
||||
$.browser = browser;
|
||||
}
|
||||
})();
|
|
@ -10,6 +10,7 @@
|
|||
<div id="iframe-container"></div>
|
||||
|
||||
<script src="/static/js/jquery.js"></script>
|
||||
<script src="/static/js/jquery_browser.js"></script>
|
||||
<script src="lib/underscore.js"></script>
|
||||
|
||||
<script src="lib/mocha.js"></script>
|
||||
|
|
Loading…
Reference in a new issue