mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 16:28:59 +00:00
Change how theme style packs are loaded
Load the `common` style pack, and then charge the style pack for the current skin, independent from any selected JS pack.
This commit is contained in:
@@ -36,12 +36,7 @@ function reducePacks (data, into = {}) {
|
||||
const skin = data.skin[skinName];
|
||||
if (!skin) continue;
|
||||
|
||||
for (const entry in skin) {
|
||||
const packFile = skin[entry];
|
||||
if (!packFile) continue;
|
||||
|
||||
into[`skins/${data.name}/${skinName}/${entry}`] = resolve(packFile);
|
||||
}
|
||||
into[`skins/${data.name}/${skinName}`] = resolve(skin);
|
||||
}
|
||||
|
||||
return into;
|
||||
|
||||
Reference in New Issue
Block a user