save and load state
This commit is contained in:
@ -1,12 +1,8 @@
|
||||
const EXT_NAME = "DataExtracter";
|
||||
|
||||
const URL_REG = getWebUrl();
|
||||
|
||||
const ACTION_EXTRACT = `${EXT_NAME}:Extract`;
|
||||
const ACTION_GOTO_URL = `${EXT_NAME}:GoToTUL`;
|
||||
const ACTION_REPORT_IN = `${EXT_NAME}:ReportIn`;
|
||||
const ACTION_QUERY_URL = `${EXT_NAME}:QueryURL`;
|
||||
const ACTION_SCROLL_BOTTOM = `${EXT_NAME}:ScrollToBottom`;
|
||||
|
||||
const MSG_ELEMENT_NOT_FOUND = new ConstMessage(1, "No element found for at least one selector, maybe it's not loaded yet");
|
||||
const MSG_URL_SKIPPED = new ConstMessage(100, "Skipped current URL");
|
||||
const ACTION_UPLOAD_STATE = `${EXT_NAME}:UploadStateFile`;
|
||||
|
||||
@ -9,6 +9,10 @@ class ConstMessage {
|
||||
}
|
||||
}
|
||||
|
||||
const URL_REG = getWebUrl();
|
||||
const MSG_ELEMENT_NOT_FOUND = new ConstMessage(1, "No element found for at least one selector, maybe it's not loaded yet");
|
||||
const MSG_URL_SKIPPED = new ConstMessage(100, "Skipped current URL");
|
||||
|
||||
function saveFile(data, mimeType, fileName) {
|
||||
fileName = fileName || document.title || "result";
|
||||
var blob;
|
||||
|
||||
Reference in New Issue
Block a user