summaryrefslogtreecommitdiff
path: root/docs/index-var.js
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2019-08-05 05:35:36 +0300
committerRasmus Andersson <rasmus@notion.se>2019-08-05 05:35:36 +0300
commitba49662904d5ba716802be57a48ea84cf89d3f10 (patch)
treeb65881e04e169632dffc617269c56c50731d37f0 /docs/index-var.js
parent672ead9a6cf4f20772bccb217055d8b5d84fc6bc (diff)
downloadinter-ba49662904d5ba716802be57a48ea84cf89d3f10.tar.xz
release 3.8
Diffstat (limited to 'docs/index-var.js')
-rw-r--r--docs/index-var.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/index-var.js b/docs/index-var.js
index 19f4aeaa2..46ef24ae6 100644
--- a/docs/index-var.js
+++ b/docs/index-var.js
@@ -64,6 +64,10 @@ var ui = {
if (unsupportedMessage) {
unsupportedMessage.classList.add('active')
}
+ } else {
+ this.state.size = window.innerWidth / 10
+ root.querySelector(`[name="size"]`).value = this.state.size
+ this.update()
}
},