mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-11 16:51:31 -04:00
Introduced use of conditional chaining operator
This commit is contained in:
parent
570206af77
commit
b92501ee35
14 changed files with 493 additions and 495 deletions
|
@ -155,7 +155,7 @@ class OutputWaiter {
|
|||
getEOLSeq() {
|
||||
const currentTabNum = this.manager.tabs.getActiveTab("output");
|
||||
if (currentTabNum < 0) {
|
||||
return this.outputEditorConf.state.lineBreak;
|
||||
return this.outputEditorConf.state?.lineBreak || "\n";
|
||||
}
|
||||
return this.outputs[currentTabNum].eolSequence;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue