diff --git a/docs/assets/plugins/code-block/code-block.js b/docs/assets/plugins/code-block/code-block.js
index b6ed38d5c..8f1df3e4b 100644
--- a/docs/assets/plugins/code-block/code-block.js
+++ b/docs/assets/plugins/code-block/code-block.js
@@ -48,10 +48,6 @@
@@ -143,15 +139,7 @@
}
};
- const setWidth = width => {
- preview.style.width = width + 'px';
-
- const totalWidth = preview.parentElement.clientWidth;
- const currentWidth = preview.clientWidth;
- const valuenow = Math.round((currentWidth / totalWidth) * 100);
-
- resizer.setAttribute('aria-valuenow', valuenow);
- };
+ const setWidth = width => preview.style.width = width + 'px';
resizer.addEventListener('mousedown', dragStart);
resizer.addEventListener('touchstart', dragStart);