aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-05-21 17:54:57 -0400
committerGitHub <noreply@github.com>2022-05-21 17:54:57 -0400
commit5dbc284d53bf77ad259aed8108ffb931c72a9621 (patch)
tree5904c8e399ba47432a1234bc48d06af57126b76c
parent8b1d4450f58a2cfdac315b54babc6db33f975791 (diff)
Simplify assignment of _contentType = 'clear' (#2154)
-rw-r--r--ext/js/display/display.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index 600df954..f9153420 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -637,8 +637,7 @@ class Display extends EventDispatcher {
this._setContentExtensionUnloaded();
break;
default:
- type = 'clear';
- this._contentType = type;
+ this._contentType = 'clear';
this._clearContent();
break;
}