Skip to content

Commit

Permalink
fix: files cannot be read under Windows (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee authored Jul 5, 2023
1 parent 6fc7857 commit 1021396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ window.onload = async function () {
const settings = await require('electron').ipcRenderer.invoke('getSettings');
window.theme = {
dev: true,
location: decodeURIComponent(scriptElement.replace('addon.js', '').replace('file://', '')),
location: decodeURIComponent(scriptElement.replace('addon.js', '').replace('file:///', '')),
theme: settings.theme,
}
const refineScript = document.createElement('script');
Expand Down

0 comments on commit 1021396

Please sign in to comment.