fix: flip base64 encoding transform
All checks were successful
/ deploy_site (push) Successful in 1m57s
All checks were successful
/ deploy_site (push) Successful in 1m57s
This commit is contained in:
parent
4ac92e5fa2
commit
248880aa9a
@ -23,7 +23,6 @@ export const Editor: FC = () => {
|
|||||||
minimap: { enabled: false },
|
minimap: { enabled: false },
|
||||||
theme: "vs-dark",
|
theme: "vs-dark",
|
||||||
fontSize: 24,
|
fontSize: 24,
|
||||||
scrollBeyondLastLine: false,
|
|
||||||
fontFamily: 'JetBrains Mono Variable',
|
fontFamily: 'JetBrains Mono Variable',
|
||||||
fontLigatures: true,
|
fontLigatures: true,
|
||||||
wordWrap: "on",
|
wordWrap: "on",
|
||||||
|
@ -2,10 +2,10 @@ import { Transform } from "./Transform";
|
|||||||
|
|
||||||
export const Base64DecodeTransform: Transform = {
|
export const Base64DecodeTransform: Transform = {
|
||||||
name: 'base64d',
|
name: 'base64d',
|
||||||
fn: async (v) => btoa(v)
|
fn: async (v) => atob(v)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Base64EncodeTransform: Transform = {
|
export const Base64EncodeTransform: Transform = {
|
||||||
name: 'base64e',
|
name: 'base64e',
|
||||||
fn: async (v) => atob(v)
|
fn: async (v) => btoa(v)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user