mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-11 16:51:31 -04:00
Line ending sequences for the current tab are included in the deep link URL
This commit is contained in:
parent
f6ae89587c
commit
570206af77
4 changed files with 41 additions and 4 deletions
|
@ -142,7 +142,22 @@ class OutputWaiter {
|
|||
});
|
||||
|
||||
// Reset the output so that lines are recalculated, preserving the old EOL values
|
||||
this.setOutput(oldOutputVal);
|
||||
this.setOutput(oldOutputVal, true);
|
||||
// Update the URL manually since we aren't firing a statechange event
|
||||
this.app.updateURL(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for the output EOL sequence
|
||||
* Prefer reading value from `this.outputs` since the editor may not have updated yet.
|
||||
* @returns {string}
|
||||
*/
|
||||
getEOLSeq() {
|
||||
const currentTabNum = this.manager.tabs.getActiveTab("output");
|
||||
if (currentTabNum < 0) {
|
||||
return this.outputEditorConf.state.lineBreak;
|
||||
}
|
||||
return this.outputs[currentTabNum].eolSequence;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue