summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHakim El Hattab2018-01-22 10:09:46 +0100
committerGitHub2018-01-22 10:09:46 +0100
commit40e55447760475f288951aaa1d8eb7b93d5b8850 (patch)
tree42ac9746ad5831b08ab1f32eeaf4c52fefd934d6
parent0c946ae18b3773895bae259802108df11fade6d9 (diff)
parentfd7894fa13d2d775bddc3e2597aa8fc066058e40 (diff)
Merge pull request #2077 from bnjmnt4n/js-load
Allow JS files with query strings to be loaded.
-rw-r--r--js/reveal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js
index e944572..9d5fb26 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -418,7 +418,7 @@
}
function loadScript( s ) {
- head.ready( s.src.match( /([\w\d_\-]*)\.?js$|[^\\\/]*$/i )[0], function() {
+ head.ready( s.src.match( /([\w\d_\-]*)\.?js(\?[\w\d.=&]*)?$|[^\\\/]*$/i )[0], function() {
// Extension may contain callback functions
if( typeof s.callback === 'function' ) {
s.callback.apply( this );