mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-04 08:05:48 -05:00
7 lines
209 B
TypeScript
7 lines
209 B
TypeScript
import store from 'store';
|
|
|
|
export function getScrollbarWidth(): number {
|
|
const storedWidth = parseInt(store.get('monacoScrollbarWidth'));
|
|
return storedWidth >= 5 || storedWidth <= 25 ? storedWidth : 5;
|
|
}
|