mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-08 04:04:11 -04:00
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;
|
|
}
|