Files
blitzkit/src/core/process/psa.ts
T

20 lines
415 B
TypeScript
Raw Normal View History

2023-06-16 02:01:06 +00:00
export interface PSAData {
title: string;
description: string;
}
export interface PSA {
2023-06-25 02:32:56 +00:00
data: PSAData | null;
2023-06-16 02:01:06 +00:00
}
2023-06-25 02:32:56 +00:00
export const psa: PSA = { data: null };
2023-06-16 02:01:06 +00:00
console.log('Caching PSA...');
fetch(
'https://gist.githubusercontent.com/tresabhi/ed4b136f08856e615212e573aabe1968/raw',
2023-06-16 02:15:46 +00:00
)
.then((response) => response.json())
.then((data) => {
2023-06-16 02:01:06 +00:00
psa.data = data as PSAData;
2023-06-16 02:15:46 +00:00
console.log('PSA cached');
2023-06-16 02:01:06 +00:00
});