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