Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Dec 24, 2024
1 parent 66db459 commit e46c2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extension/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ export default class Bridge extends Extension {
const base64Match = utils.isBase64File(message.options.icon);
if (base64Match) {
const md5Hash = crypto.createHash('md5').update(base64Match.data).digest('hex');
const fileSettings = path.join('device_icons', `${md5Hash}.${base64Match.extension}`);
const fileSettings = `device_icons/${md5Hash}.${base64Match.extension}`;
const file = path.join(data.getPath(), fileSettings);
fs.mkdirSync(path.dirname(file), {recursive: true});
fs.writeFileSync(file, base64Match.data, {encoding: 'base64'});
Expand Down

0 comments on commit e46c2b6

Please sign in to comment.