1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-23 23:11:12 +02:00

remove newline after opening script tag to fix linenumber in errors

This commit is contained in:
Kushagra Gour
2024-07-15 22:42:03 +05:30
parent cbe49de9f2
commit 747f86228d

View File

@@ -432,7 +432,7 @@ export function getCompleteHtml(html, css, js, item, isForExport) {
if (js) {
if (typeof js === 'string') {
contents += js ? '<script>\n' + js + '\n//# sourceURL=userscript.js' : '';
contents += js ? '<script>' + js + '\n//# sourceURL=userscript.js' : '';
} else {
var origin = chrome.i18n.getMessage()
? `chrome-extension://${chrome.i18n.getMessage('@@extension_id')}`