diff options
Diffstat (limited to 'app/dispatch/static/materialize/js/initial.js')
| -rw-r--r-- | app/dispatch/static/materialize/js/initial.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/dispatch/static/materialize/js/initial.js b/app/dispatch/static/materialize/js/initial.js new file mode 100644 index 0000000..db436f4 --- /dev/null +++ b/app/dispatch/static/materialize/js/initial.js @@ -0,0 +1,10 @@ +// Check for jQuery.
+if (typeof(jQuery) === 'undefined') {
+ // Check if require is a defined function.
+ if (typeof(require) === 'function') {
+ jQuery = $ = require('jquery');
+ // Else use the dollar sign alias.
+ } else {
+ jQuery = $;
+ }
+}
|
