Skip to content

Commit

Permalink
refactor: rename stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
madkarmaa committed Dec 17, 2024
1 parent ae67946 commit e208a4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
File renamed without changes.
17 changes: 2 additions & 15 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,6 @@ export const minToMs = (min: number): number => secToMs(min * 60);
export const choose = <T>(arr: T[]): T => arr[Math.floor(Math.random() * arr.length)];

export const base64 = {
encode: (input: string): string => {
try {
return btoa(input);
} catch (e) {
throw new Error('Failed to encode: ' + e);
}
},

decode: (input: string): string => {
try {
return atob(input);
} catch (e) {
throw new Error('Failed to decode: ' + e);
}
}
encode: (input: string): string => btoa(input),
decode: (input: string): string => atob(input)
};
2 changes: 1 addition & 1 deletion src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import '../app.css';
import '../lib/deep-freeze';
import '../lib/deepfreeze';

export const prerender = true;

0 comments on commit e208a4f

Please sign in to comment.