Skip to content

Commit 61b9fb6

Browse files
committed
Remove peanut icons
1 parent 4f55f67 commit 61b9fb6

File tree

5 files changed

+0
-170
lines changed

5 files changed

+0
-170
lines changed

assets/peanut.svg

-1
This file was deleted.

lib/addAttribute.js

-136
This file was deleted.

lib/content.js

-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import scanElement from './scanElement.js';
2-
import { removeAttributes } from './addAttribute.js';
32
import injectTransformed from './injectTransformed.js';
43
import './style.css';
54

@@ -16,12 +15,6 @@ async function observe(mutations) {
1615
for (const node of mutation.addedNodes) {
1716
await scanElement(node);
1817
}
19-
20-
for (const node of mutation.removedNodes) {
21-
if (node.classList && node.classList.contains('ModalItem')) {
22-
removeAttributes();
23-
}
24-
}
2518
}
2619
}
2720

lib/patches/playerStats.js

-22
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
import camelCase from 'camelcase';
22
import runOnPage from '../runOnPage.js';
33
import { fiber, state, nth } from '../react.js';
4-
import addAttribute from '../addAttribute.js';
5-
import peanut from '../../assets/peanut.svg';
64

75
function apply(stats, item, player) {
8-
if (player.peanutAllergy) {
9-
addAttribute(item, {
10-
color: '#ffb04b',
11-
bg: '#2b0000',
12-
border: '#dbbc0b',
13-
title: 'Peanut Allergy',
14-
desc: 'This player is allergic to peanuts.',
15-
svg: peanut
16-
});
17-
} else {
18-
addAttribute(item, {
19-
color: '#daff4b',
20-
bg: '#002b00',
21-
border: '#dbbc0b',
22-
title: 'Peanut Profiteer',
23-
desc: 'This player has yummy reactions to peanuts.',
24-
svg: peanut
25-
});
26-
}
27-
286
let content = stats.closest('.ModalItem-Content');
297
let fk = content.querySelector('.Player-Info-FK');
308

webpack.config.mjs

-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ const config = env => ({
3939
{
4040
test: /\.css$/i,
4141
use: ['style-loader', 'css-loader']
42-
},
43-
{
44-
test: /\.svg$/i,
45-
type: 'asset/source'
4642
}
4743
]
4844
}

0 commit comments

Comments
 (0)