diff --git a/apps/App Maker/script.js b/apps/App Maker/script.js
index a01f204..7a65c0a 100644
--- a/apps/App Maker/script.js
+++ b/apps/App Maker/script.js
@@ -48,7 +48,7 @@ function processCodeBlock(type, code) {
mergeJavaScript(code);
break;
case 'bad_javascript':
- displayMessage("Not sure what to do what was pasted. Make sure it is correct code. Paste it into the chatbot and ask it.");
+ displayMessage("Not sure what to do what was pasted. Make sure it is correct code.\nPaste it into the chatbot and ask it.");
break;
default:
console.log("Unrecognized code type: " + type);
@@ -67,7 +67,7 @@ function handlePasteContent(clipboardContent) {
// If an error occurs, copy error information to the clipboard
copyTextToClipboard(`Error while pasting: ${err}\n\nPasted Content:\n${clipboardContent}`);
// Display user-friendly error message
- displayMessage("An error while pasting occurred and has been placed on the clipboard. Please go to your chatbot and paste the error so it can fix it. If you don't know how to paste then ask it.", true);
+ displayMessage("An error while pasting occurred and has been placed on the clipboard.\nPlease go to your chatbot and paste the error so it can fix it.\nIf you don't know how to paste then ask it.", true);
}
}
@@ -86,7 +86,7 @@ document.getElementById('pasteBtn').addEventListener('click', async function() {
handlePasteContent(clipboardText);
} catch (err) {
copyTextToClipboard(`Error while accessing clipboard: ${err}`);
- alert("An error occurred while accessing the clipboard. The error has been copied to the clipboard. Please paste it to your chatbot for assistance.");
+ displayMessage("An error occurred while accessing the clipboard.\nThe error has been copied to the clipboard.\nPlease paste it to your chatbot for assistance.");
}
});
@@ -118,14 +118,14 @@ function assembleFinalHtml(htmlCode, cssCode, jsCode) {
if (/`);
+ finalHtml = finalHtml.replace('', ``);
}
// Append jsCode to existing