Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ function ready() {
// First, check if it's plain text and exit if not
const plainText = getTextFromTextOnlyDocument();
if (!plainText || plainText.length > 3000000) {
// If there is plain text and it's over 3MB, send alert
plainText && alert('JSON Formatter Error: Cannot parse JSON larger than 3MB');
port.disconnect();
return;
}
Expand Down