lib/chartkick/helper.rb in chartkick-4.0.5 vs lib/chartkick/helper.rb in chartkick-4.1.0
- old
+ new
@@ -115,9 +115,10 @@
# 2. loading data from URL
js = <<~JS
<script#{nonce_html}>
(function() {
if (document.documentElement.hasAttribute("data-turbolinks-preview")) return;
+ if (document.documentElement.hasAttribute("data-turbo-preview")) return;
var createChart = function() { #{createjs} };
if ("Chartkick" in window) {
createChart();
} else {