because safari/webkit is fundamentally braindead

This commit is contained in:
Stewart Allen 2024-06-08 00:07:42 -07:00
commit 44e6dc75dc
2 changed files with 6 additions and 4 deletions

5
app.js
View file

@ -728,7 +728,10 @@ function minify(path) {
return code;
}
let mini = uglify.minify(code.toString(), {
compress: { unused: false }
compress: {
merge_vars: false,
unused: false
}
});
if (mini.error) {
console.trace(mini.error);

View file

@ -26,9 +26,8 @@ const POLY = polygons;
* @param {Number} [index] into widget array
* @param {Object} [firstPoint] starting point
*/
CAM.prepare = async function(widgets, settings, update) {
widgets = widgets.filter(w => !w.track.ignore && !w.meta.disabled);
CAM.prepare = async function(widall, settings, update) {
const widgets = widall.filter(w => !w.track.ignore && !w.meta.disabled);
const count = widgets.length;
const weight = 1/count;
const print = self.worker.print = kiri.newPrint(settings, widgets);