fix(browser-extension): issue #229
This commit is contained in:
parent
9559fc761b
commit
5fa4b9566c
@ -121,7 +121,7 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<div class="grid">
|
<div class="content">
|
||||||
<button class="popup-button" disabled id="power-option">
|
<button class="popup-button" disabled id="power-option">
|
||||||
<svg
|
<svg
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
|
@ -124,7 +124,7 @@ async function handleContentLoaded() {
|
|||||||
const { exclusions } = (await dispatch({ hostname, type: 'GET_DATA' })) ?? {};
|
const { exclusions } = (await dispatch({ hostname, type: 'GET_DATA' })) ?? {};
|
||||||
const currentVersion = browser.runtime.getManifest().version;
|
const currentVersion = browser.runtime.getManifest().version;
|
||||||
const latestVersion = await dispatch({ type: 'GET_LATEST_VERSION' });
|
const latestVersion = await dispatch({ type: 'GET_LATEST_VERSION' });
|
||||||
const updateAvailable = currentVersion !== latestVersion;
|
const updateAvailable = latestVersion && currentVersion !== latestVersion;
|
||||||
|
|
||||||
if (updateAvailable) {
|
if (updateAvailable) {
|
||||||
const updateBanner = document.getElementById('update-banner');
|
const updateBanner = document.getElementById('update-banner');
|
||||||
|
@ -96,7 +96,7 @@ header {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid {
|
.content {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
|
Loading…
Reference in New Issue
Block a user