Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
generateTestPage() {
if (this._marshaller) {
const context = this;
const state = Persist.serialize(context, function (widget, publishItem) {
if (publishItem.id === "databomb" || publishItem.id === "ddlUrl") {
return true;
}
return false;
});
const databomb = this._marshaller.createDatabomb();
const page = tpl
.replace("{VERSION}", Platform.version())
.replace("{STATE}", state)
.replace("{DDL}", context._marshaller._json.replace("WUID", "databomb"))
.replace("{DATABOMB}", JSON.stringify(databomb))
;
Utility.downloadString("TEXT", page, "test");
}
}