Skip to content

Commit 2cd7003

Browse files
committed
Remove the local jquery-1.9.1.min.js.
1 parent f5e16ce commit 2cd7003

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

js/tests/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
// get jquery param from the query string.
1313
var jQueryVersion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/)
1414

15-
// If a version was specified, use that version from our vendor folder
15+
// If a version was specified, use that version from jQuery CDN
1616
if (jQueryVersion) {
17-
path = 'vendor/jquery-' + jQueryVersion[1] + '.min.js'
17+
path = 'https://code.jquery.com/jquery-' + jQueryVersion[1] + '.min.js'
1818
}
1919
document.write('<script src="' + path + '"><\/script>')
2020
}())

js/tests/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path')
44
const jsCoveragePath = path.resolve(__dirname, '../coverage')
55

66
module.exports = (config) => {
7-
const jqueryFile = process.env.USE_OLD_JQUERY ? 'js/tests/vendor/jquery-1.9.1.min.js' : 'assets/js/vendor/jquery-slim.min.js'
7+
const jqueryFile = process.env.USE_OLD_JQUERY ? 'https://code.jquery.com/jquery-1.9.1.min.js' : 'assets/js/vendor/jquery-slim.min.js'
88

99
config.set({
1010
basePath: '../..',

0 commit comments

Comments
 (0)