Browse Source

Allow JS files with query strings to be loaded.

Fixes #1944.
Benjamin Tan 6 years ago
parent
commit
fd7894fa13
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

@@ -418,7 +418,7 @@
 		}
 		}
 
 
 		function loadScript( s ) {
 		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
 				// Extension may contain callback functions
 				if( typeof s.callback === 'function' ) {
 				if( typeof s.callback === 'function' ) {
 					s.callback.apply( this );
 					s.callback.apply( this );