Enable Web Worker for JStree

This commit is contained in:
Sebastian Serth
2024-04-13 18:25:00 +02:00
committed by Sebastian Serth
parent da9add4a10
commit 4ba5f0d7d8

View File

@ -24,10 +24,6 @@ $.fn.scrollTo = function(selector) {
}, 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() {
// Update all CSRF tokens on the page to reduce InvalidAuthenticityToken errors
// See https://github.com/rails/jquery-ujs/issues/456 for details