Fix indentation in Diff2HtmlUI example

This commit is contained in:
Aaron 2021-10-20 15:51:39 -07:00 committed by GitHub
parent 7ef1a6f9a5
commit c6ccf02623
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -269,12 +269,12 @@ document.addEventListener('DOMContentLoaded', () => {
</head> </head>
<script> <script>
const diffString = `diff --git a/sample.js b/sample.js const diffString = `diff --git a/sample.js b/sample.js
index 0000001..0ddf2ba index 0000001..0ddf2ba
--- a/sample.js --- a/sample.js
+++ b/sample.js +++ b/sample.js
@@ -1 +1 @@ @@ -1 +1 @@
-console.log("Hello World!") -console.log("Hello World!")
+console.log("Hello from Diff2Html!")`; +console.log("Hello from Diff2Html!")`;
document.addEventListener('DOMContentLoaded', function () { document.addEventListener('DOMContentLoaded', function () {
var targetElement = document.getElementById('myDiffElement'); var targetElement = document.getElementById('myDiffElement');