Enable Web Worker for JStree
This commit is contained in:

committed by
Sebastian Serth

parent
da9add4a10
commit
4ba5f0d7d8
@ -24,10 +24,6 @@ $.fn.scrollTo = function(selector) {
|
|||||||
}, ANIMATION_DURATION);
|
}, ANIMATION_DURATION);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Disable the use of web workers for JStree due to JS error
|
|
||||||
// See https://github.com/vakata/jstree/issues/1717 for details
|
|
||||||
$.jstree.defaults.core.worker = false;
|
|
||||||
|
|
||||||
$(document).on('turbolinks:load', function() {
|
$(document).on('turbolinks:load', function() {
|
||||||
// Update all CSRF tokens on the page to reduce InvalidAuthenticityToken errors
|
// Update all CSRF tokens on the page to reduce InvalidAuthenticityToken errors
|
||||||
// See https://github.com/rails/jquery-ujs/issues/456 for details
|
// See https://github.com/rails/jquery-ujs/issues/456 for details
|
||||||
|
Reference in New Issue
Block a user