Skip to content

Commit 7b4ed39

Browse files
committed
fix the playground html
1 parent ae8eeae commit 7b4ed39

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

playground/index.html

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@
559559
<div class="col-sm-9">
560560
<div class="input-group mb-3">
561561
<label class="input-group-text" for="result"
562-
>Result</label
562+
>CSS</label
563563
>
564564
<a
565565
class="btn btn-outline-secondary"
@@ -581,14 +581,14 @@
581581
</button>
582582
</div>
583583
</div>
584-
<textarea
585-
class="form-control"
586-
disabled
587-
id="result"
588-
name="result"
589-
rows="10"
590-
></textarea>
591584
</div>
585+
<textarea
586+
class="form-control"
587+
disabled
588+
id="result"
589+
name="result"
590+
rows="10"
591+
></textarea>
592592
</div>
593593
</div>
594594
<div class="col-sm-12 col-md-6 css-parse-options-module-box">
@@ -597,7 +597,7 @@
597597
<div class="col-sm-9">
598598
<div class="input-group mb-3">
599599
<label class="input-group-text" for="mapping"
600-
>CSS Modules export</label
600+
>CSS Modules Mapping</label
601601
>
602602
<a
603603
class="btn btn-outline-secondary"
@@ -980,11 +980,7 @@
980980
if (target != null) {
981981
const url = generateDownloadUrl(
982982
target,
983-
target.download === "result"
984-
? result.value
985-
: target.download === "ast"
986-
? ast.value
987-
: errors.value,
983+
document.getElementById(target.getAttribute('download')).value,
988984
target.download === "result" ? "text/css" : "application/json"
989985
);
990986

0 commit comments

Comments
 (0)