net::ERR_ABORTED 500 minify js
-
Hello,
I am using the latest version of the plugin and when minifying one of the JS files I get the title error.
If I delete this JS, there is no problem, so I have intuited that it is because of the
that the js file contains…I leave here the conflicting js file:
function createCircleChart(percent, color, size, stroke, symboll) { let svg =<svg class=”mkc_circle-chart” viewbox=”0 0 36 36″ width=”${size}” height=”${size}” xmlns=”http://www.w3.org/2000/svg”>
<path class=”mkc_circle-bg” stroke=”#eeeeee” stroke-width=”${stroke * 0.5}” fill=”none” d=”M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831″/>
<path class=”mkc_circle” stroke=”${color}” stroke-width=”${stroke}” stroke-dasharray=”${percent},100″ stroke-linecap=”round” fill=”none”
d=”M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831″ />
<text class=”mkc_info” x=”50%” y=”50%” alignment-baseline=”central” text-anchor=”middle” font-size=”8″ style=”fill:#333″>${symboll}${percent}%</text>
</svg>`;
return svg;
}let charts = document.getElementsByClassName(‘mkCharts’);
for(let i=0;i<charts.length;i++) {
let chart = charts[i];
let percent = chart.dataset.percent;
let color = (‘color’ in chart.dataset) ? chart.dataset.color : “#f2522e”;
let size = (‘size’ in chart.dataset) ? chart.dataset.size : “100”;
let stroke = (‘stroke’ in chart.dataset) ? chart.dataset.stroke : “1”;
let symboll = (‘symboll’ in chart.dataset) ? chart.dataset.symboll : “”;
charts[i].innerHTML = createCircleChart(percent, color, size, stroke, symboll);
}`
The topic ‘net::ERR_ABORTED 500 minify js’ is closed to new replies.