DSMsaveload/inject_scripts/save.js
2022-09-04 23:55:34 -04:00

8 lines
297 B
JavaScript

(function () {
const expressions = Calc.getExpressions();
const expressionBox = document.getElementById("EXPORTEXPRESSION");
expressionBox.textContent = JSON.stringify(expressions);
const updateEvent = new Event("updatedExpression");
document.dispatchEvent(updateEvent);
})();