Skip to content

Commit e46c2b6

Browse files
committed
u
1 parent 66db459 commit e46c2b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/extension/bridge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ export default class Bridge extends Extension {
439439
const base64Match = utils.isBase64File(message.options.icon);
440440
if (base64Match) {
441441
const md5Hash = crypto.createHash('md5').update(base64Match.data).digest('hex');
442-
const fileSettings = path.join('device_icons', `${md5Hash}.${base64Match.extension}`);
442+
const fileSettings = `device_icons/${md5Hash}.${base64Match.extension}`;
443443
const file = path.join(data.getPath(), fileSettings);
444444
fs.mkdirSync(path.dirname(file), {recursive: true});
445445
fs.writeFileSync(file, base64Match.data, {encoding: 'base64'});

0 commit comments

Comments
 (0)