Skip to content

Commit 5f55665

Browse files
committed
Minor tweaks.
1 parent 04ba438 commit 5f55665

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demos/color-palette/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function App() {
197197

198198
// Override the anchor properties to force the download.
199199
anchor.href = canvas.toDataURL( "image/png" );
200-
anchor.download = this._generateDownloadFilename( "png" )
200+
anchor.download = this._generateDownloadFilename( "png" );
201201

202202
}
203203

@@ -280,7 +280,7 @@ function App() {
280280

281281
// Override the anchor properties to force the download.
282282
anchor.href = `data:image/svg+xml;base64,${ btoa( svgMarkup ) }`;
283-
anchor.download = this._generateDownloadFilename( "svg" )
283+
anchor.download = this._generateDownloadFilename( "svg" );
284284

285285
}
286286

@@ -380,7 +380,7 @@ function App() {
380380

381381
if ( urlState && ( urlState !== currentState ) ) {
382382

383-
this.palette = [];
383+
this.palette.length = 0;
384384
this.activeSwatchIndex = 0;
385385
this._loadState();
386386
this._focusHueAsync();

0 commit comments

Comments
 (0)