실시간 차트 신고가,신저가 표시
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
const STORAGE_KEY = 'gc_chartPriceExtremeLabels';
|
||||
|
||||
/** 실시간 차트 — 9·20일 신고가·신저가 라벨 표시 (기본 off) */
|
||||
export function loadChartPriceExtremeLabelsVisible(): boolean {
|
||||
try {
|
||||
return localStorage.getItem(STORAGE_KEY) === '1';
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export function saveChartPriceExtremeLabelsVisible(visible: boolean): void {
|
||||
try {
|
||||
localStorage.setItem(STORAGE_KEY, visible ? '1' : '0');
|
||||
} catch { /* ok */ }
|
||||
}
|
||||
Reference in New Issue
Block a user