Skip to content

Commit 134cf65

Browse files
fix indents
1 parent 073f30a commit 134cf65

File tree

1 file changed

+48
-52
lines changed

1 file changed

+48
-52
lines changed

src/Recovery.tsx

Lines changed: 48 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -58,29 +58,27 @@ export default function Recovery() {
5858
sessionStorage.setItem("boot", "true");
5959
window.location.reload();
6060
};
61-
6261
const cloak = () => {
6362
const newWindow = window.open("about:blank", "_blank");
6463
const newDocument = newWindow!.document.open();
6564
sessionStorage.setItem("boot", "true");
6665
newDocument.write(`
67-
<!DOCTYPE html>
68-
<html>
69-
<head>
70-
<style type="text/css">
71-
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
72-
</style>
73-
</head>
74-
<body>
75-
<iframe style="border: none; width: 100%; height: 100vh;" src="${window.location.href}?boot=true"></iframe>
76-
</body>
77-
</html>
78-
`);
66+
<!DOCTYPE html>
67+
<html>
68+
<head>
69+
<style type="text/css">
70+
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
71+
</style>
72+
</head>
73+
<body>
74+
<iframe style="border: none; width: 100%; height: 100vh;" src="${window.location.href}?boot=true"></iframe>
75+
</body>
76+
</html>
77+
`);
7978
newDocument.close();
8079
window.location.href = "https://google.com";
8180
console.log("Cloak Opened!");
8281
};
83-
8482
const recovery = () => {
8583
sessionStorage.setItem("recovery", "true");
8684
window.location.reload();
@@ -176,29 +174,27 @@ export default function Recovery() {
176174
sessionStorage.setItem("boot", "true");
177175
window.location.reload();
178176
};
179-
180177
const cloak = () => {
181178
const newWindow = window.open("about:blank", "_blank");
182179
const newDocument = newWindow!.document.open();
183180
sessionStorage.setItem("boot", "true");
184181
newDocument.write(`
185-
<!DOCTYPE html>
186-
<html>
187-
<head>
188-
<style type="text/css">
189-
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
190-
</style>
191-
</head>
192-
<body>
193-
<iframe style="border: none; width: 100%; height: 100vh;" src="${window.location.href}?boot=true"></iframe>
194-
</body>
195-
</html>
196-
`);
182+
<!DOCTYPE html>
183+
<html>
184+
<head>
185+
<style type="text/css">
186+
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
187+
</style>
188+
</head>
189+
<body>
190+
<iframe style="border: none; width: 100%; height: 100vh;" src="${window.location.href}?boot=true"></iframe>
191+
</body>
192+
</html>
193+
`);
197194
newDocument.close();
198195
window.location.href = "https://google.com";
199196
console.log("Cloak Opened!");
200197
};
201-
202198
const recovery = () => {
203199
sessionStorage.setItem("recovery", "true");
204200
window.location.reload();
@@ -413,18 +409,18 @@ export default function Recovery() {
413409
const newDocument = newWindow!.document.open();
414410
sessionStorage.setItem("boot", "true");
415411
newDocument.write(`
416-
<!DOCTYPE html>
417-
<html>
418-
<head>
419-
<style type="text/css">
420-
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
421-
</style>
422-
</head>
423-
<body>
424-
<iframe style="border: none; width: 100%; height: 100vh;" src="${window.location.href}?boot=true"></iframe>
425-
</body>
426-
</html>
427-
`);
412+
<!DOCTYPE html>
413+
<html>
414+
<head>
415+
<style type="text/css">
416+
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
417+
</style>
418+
</head>
419+
<body>
420+
<iframe style="border: none; width: 100%; height: 100vh;" src="${window.location.href}?boot=true"></iframe>
421+
</body>
422+
</html>
423+
`);
428424
newDocument.close();
429425
window.location.href = "https://google.com";
430426
console.log("Cloak Opened!");
@@ -576,18 +572,18 @@ export default function Recovery() {
576572
const newDocument = newWindow!.document.open();
577573
sessionStorage.setItem("boot", "true");
578574
newDocument.write(`
579-
<!DOCTYPE html>
580-
<html>
581-
<head>
582-
<style type="text/css">
583-
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
584-
</style>
585-
</head>
586-
<body>
587-
<iframe style="border: none; width: 100%; height: 100vh;" src="${window.location.href}?boot=true"></iframe>
588-
</body>
589-
</html>
590-
`);
575+
<!DOCTYPE html>
576+
<html>
577+
<head>
578+
<style type="text/css">
579+
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; }
580+
</style>
581+
</head>
582+
<body>
583+
<iframe style="border: none; width: 100%; height: 100vh;" src="${window.location.href}?boot=true"></iframe>
584+
</body>
585+
</html>
586+
`);
591587
newDocument.close();
592588
window.location.href = "https://google.com";
593589
console.log("Cloak Opened!");

0 commit comments

Comments
 (0)