mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-13 22:53:09 +00:00
Remove the local jquery-1.9.1.min.js.
This commit is contained in:
parent
f5e16ceccc
commit
2cd700313d
3 changed files with 3 additions and 8 deletions
|
|
@ -12,9 +12,9 @@
|
||||||
// get jquery param from the query string.
|
// get jquery param from the query string.
|
||||||
var jQueryVersion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/)
|
var jQueryVersion = location.search.match(/[?&]jquery=(.*?)(?=&|$)/)
|
||||||
|
|
||||||
// If a version was specified, use that version from our vendor folder
|
// If a version was specified, use that version from jQuery CDN
|
||||||
if (jQueryVersion) {
|
if (jQueryVersion) {
|
||||||
path = 'vendor/jquery-' + jQueryVersion[1] + '.min.js'
|
path = 'https://code.jquery.com/jquery-' + jQueryVersion[1] + '.min.js'
|
||||||
}
|
}
|
||||||
document.write('<script src="' + path + '"><\/script>')
|
document.write('<script src="' + path + '"><\/script>')
|
||||||
}())
|
}())
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const path = require('path')
|
||||||
const jsCoveragePath = path.resolve(__dirname, '../coverage')
|
const jsCoveragePath = path.resolve(__dirname, '../coverage')
|
||||||
|
|
||||||
module.exports = (config) => {
|
module.exports = (config) => {
|
||||||
const jqueryFile = process.env.USE_OLD_JQUERY ? 'js/tests/vendor/jquery-1.9.1.min.js' : 'assets/js/vendor/jquery-slim.min.js'
|
const jqueryFile = process.env.USE_OLD_JQUERY ? 'https://code.jquery.com/jquery-1.9.1.min.js' : 'assets/js/vendor/jquery-slim.min.js'
|
||||||
|
|
||||||
config.set({
|
config.set({
|
||||||
basePath: '../..',
|
basePath: '../..',
|
||||||
|
|
|
||||||
5
js/tests/vendor/jquery-1.9.1.min.js
vendored
5
js/tests/vendor/jquery-1.9.1.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue