diff --git a/lib/WeBWorK/Utils.pm b/lib/WeBWorK/Utils.pm index 515f7d6de4..5065fe82d7 100644 --- a/lib/WeBWorK/Utils.pm +++ b/lib/WeBWorK/Utils.pm @@ -401,13 +401,13 @@ sub readJSON ($fileName) { sub getThirdPartyAssetURL ($file, $dependencies, $baseURL, $useCDN = 0) { for (keys %$dependencies) { if ($file =~ /^node_modules\/$_\/(.*)$/) { - if ($useCDN && $1 !~ /mathquill/) { + if ($useCDN) { return "https://cdn.jsdelivr.net/npm/$_\@" . substr($dependencies->{$_}, 1) . '/' . ($1 =~ s/(?:\.min)?\.(js|css)$/.min.$1/gr); } else { - return "$baseURL/$file?version=" . ($dependencies->{$_} =~ s/#/@/gr); + return "$baseURL/$file?version=$dependencies->{$_}"; } } }