1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-09 23:26:40 +02:00

Remove the local jquery-1.9.1.min.js.

This commit is contained in:
XhmikosR
2018-03-21 12:00:13 +02:00
parent f5e16ceccc
commit 2cd700313d
3 changed files with 3 additions and 8 deletions

View File

@@ -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>')
}()) }())

View File

@@ -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: '../..',

File diff suppressed because one or more lines are too long