Files
splatoon3.ink/app/data/updaters/CoopUpdater.mjs
Matt Isenhower 011430f344 Fix code inconsistencies across frontend and backend
Use strict equality in TricolorBox, add async keyword to
CoopUpdater/GearUpdater getData() for consistency, and add
missing HMR accept for useCoopGearStore.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 20:04:05 -08:00

29 lines
458 B
JavaScript

import DataUpdater from './DataUpdater.mjs';
export default class CoopUpdater extends DataUpdater
{
name = 'Co-Op';
filename = 'coop';
imagePaths = [
'$..image.url',
];
derivedIds = [
'$..monthlyGear',
];
localizations = [
{
key: 'gear',
nodes: '$..monthlyGear',
id: '__splatoon3ink_id',
values: 'name',
},
];
async getData(locale) {
return this.splatnet(locale).getCoopHistoryData();
}
}