fixxxxxxxxxxxxx
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[Settings]
|
||||
gtk-theme-name=catppuccin-mocha-blue-standard
|
||||
gtk-icon-theme-name=Adwaita
|
||||
gtk-font-name=SF Pro Display
|
||||
gtk-theme-name=catppuccin-mocha-blue-standard+default
|
||||
gtk-icon-theme-name=Arashi
|
||||
gtk-font-name=Noto Sans 11
|
||||
gtk-cursor-theme-name=RalseiCursors
|
||||
gtk-cursor-theme-size=24
|
||||
gtk-toolbar-style=GTK_TOOLBAR_ICONS
|
||||
|
||||
@@ -10,7 +10,7 @@ const API_URL = "https://api.e-z.host/files";
|
||||
*/
|
||||
export async function UploadToEZ(content: Buffer): Promise<string> {
|
||||
if (!process.env.EZ_API_KEY) {
|
||||
throw new Error(`Missing \`EZ_API_KEY\`, make sure you're loading the env from \`${homedir()}/.ocbwoy3-dotfiles-SECRET-DO-NOT-TOUCH.env\`!`)
|
||||
throw new Error(`Missing EZ_API_KEY, make sure you're loading the env from ${homedir()}/.ocbwoy3-dotfiles-SECRET-DO-NOT-TOUCH.env!`)
|
||||
}
|
||||
|
||||
if (!(content[0] === 0x89 && content[1] === 0x50 && content[2] === 0x4e)) {
|
||||
@@ -20,7 +20,7 @@ export async function UploadToEZ(content: Buffer): Promise<string> {
|
||||
const form = new FormData();
|
||||
form.append(
|
||||
"file",
|
||||
new Blob([content], { type: "image/png" }),
|
||||
new Blob([content as any], { type: "image/png" }),
|
||||
"screenshot.png"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user