From 248880aa9a35079dcf1403bdad756857af64b3ba Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Mon, 28 Oct 2024 13:01:35 +0900 Subject: [PATCH] fix: flip base64 encoding transform --- src/Editor/index.tsx | 1 - src/Transforms/Base64Transforms.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Editor/index.tsx b/src/Editor/index.tsx index 22f898c..04c642e 100644 --- a/src/Editor/index.tsx +++ b/src/Editor/index.tsx @@ -23,7 +23,6 @@ export const Editor: FC = () => { minimap: { enabled: false }, theme: "vs-dark", fontSize: 24, - scrollBeyondLastLine: false, fontFamily: 'JetBrains Mono Variable', fontLigatures: true, wordWrap: "on", diff --git a/src/Transforms/Base64Transforms.ts b/src/Transforms/Base64Transforms.ts index 227e13d..55e4c9d 100644 --- a/src/Transforms/Base64Transforms.ts +++ b/src/Transforms/Base64Transforms.ts @@ -2,10 +2,10 @@ import { Transform } from "./Transform"; export const Base64DecodeTransform: Transform = { name: 'base64d', - fn: async (v) => btoa(v) + fn: async (v) => atob(v) } export const Base64EncodeTransform: Transform = { name: 'base64e', - fn: async (v) => atob(v) + fn: async (v) => btoa(v) }