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