mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 16:26:16 -04:00
Input and Output encodings are now saved per tab
This commit is contained in:
parent
5efd125d9b
commit
bdb8c02d5a
9 changed files with 87 additions and 33 deletions
|
@ -51,8 +51,8 @@ class HighlighterWaiter {
|
|||
const selectionRanges = e.state.selection.ranges;
|
||||
|
||||
// Adjust offsets based on the width of the character set
|
||||
const inputCharacterWidth = chrEncWidth(this.manager.input.inputChrEnc);
|
||||
const outputCharacterWidth = chrEncWidth(this.manager.output.outputChrEnc);
|
||||
const inputCharacterWidth = chrEncWidth(this.manager.input.getChrEnc());
|
||||
const outputCharacterWidth = chrEncWidth(this.manager.output.getChrEnc());
|
||||
let ratio = 1;
|
||||
if (inputCharacterWidth !== outputCharacterWidth &&
|
||||
inputCharacterWidth !== 0 && outputCharacterWidth !== 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue