mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 12:17:22 +00:00
Remove vencord
This commit is contained in:
@@ -276,33 +276,6 @@ export class ObsidianContext extends Context {
|
||||
}
|
||||
}
|
||||
|
||||
export class VencordContext extends Context {
|
||||
|
||||
/**
|
||||
* @override
|
||||
* @returns {Promise<BirbSaveData|{}>}
|
||||
*/
|
||||
async getSaveData() {
|
||||
// @ts-expect-error
|
||||
return await Vencord.Api.DataStore.get(SAVE_KEY) ?? {};
|
||||
}
|
||||
|
||||
/**
|
||||
* @override
|
||||
* @param {BirbSaveData} saveData
|
||||
*/
|
||||
async putSaveData(saveData) {
|
||||
// @ts-expect-error
|
||||
await Vencord.Api.DataStore.set(SAVE_KEY, saveData);
|
||||
}
|
||||
|
||||
/** @override */
|
||||
resetSaveData() {
|
||||
// @ts-expect-error
|
||||
Vencord.Api.DataStore.del(SAVE_KEY);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse URL parameters into a key-value map
|
||||
* @param {string} url
|
||||
|
||||
Reference in New Issue
Block a user