Skip to content

Commit

Permalink
fix: small favicon saving improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
sentialx committed Oct 2, 2019
1 parent 432e5b0 commit 15f305a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/windows-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ export class WindowsManager {
data = Buffer.from(new Uint8Array(await convertIcoToPng(data)));
}

const str = `data:${type.ext};base64,${data.toString('base64')}`;
const str = `data:${fileType(data).ext};base64,${data.toString(
'base64',
)}`;

storage.insert({
scope: 'favicons',
Expand Down

0 comments on commit 15f305a

Please sign in to comment.