mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
7 lines
209 B
TypeScript
7 lines
209 B
TypeScript
import store from 'store';
|
|
|
|
export function getScrollbarWidth(): number {
|
|
const storedWidth = store.get('monacoScrollbarWidth') as number;
|
|
return storedWidth >= 5 || storedWidth <= 25 ? storedWidth : 5;
|
|
}
|