Skip to content

Commit

Permalink
✏️ [Fix] Properly close html tag #44
Browse files Browse the repository at this point in the history
✏️ [Fix] Properly close html tag #44
  • Loading branch information
oinochoe authored Jan 31, 2024
1 parent 0df61d1 commit d0eb9ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ class ProgressBar {
});

const langAttribute = this._options.lang ? `lang="${this._options.lang}"` : "";
const $htmlContent = this._options.customHTML ? this._options.customHTML.replace(/<html ([^>]*)>/, "<html lang='{{REPLACE:LANG}}") : htmlContent;
const $htmlContent = this._options.customHTML ? this._options.customHTML.replace(/<html ([^>]*)>/, "<html lang='{{REPLACE:LANG}}>") : htmlContent;
this._window.loadURL('data:text/html;charset=UTF8,' + encodeURIComponent($htmlContent.replace('{{REPLACE:LANG}}', langAttribute)));

this._window.webContents.on('did-finish-load', () => {
Expand Down

0 comments on commit d0eb9ef

Please sign in to comment.