From 323db85c89f2fff490f9c8e3b1f39f5eafbc72d0 Mon Sep 17 00:00:00 2001 From: emerson Date: Tue, 24 Dec 2024 14:11:45 -0500 Subject: [PATCH] update options now that webgpu is available in the latest release --- chrome/manifest.json | 2 +- firefox/manifest.json | 2 +- package-extension.sh | 2 +- shared/options/options.html | 2 +- shared/options/options.js | 10 ---------- 5 files changed, 4 insertions(+), 14 deletions(-) diff --git a/chrome/manifest.json b/chrome/manifest.json index 2f5c4c7..4aa66e4 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Rapid Power User Extension", "description": "Fully replace iD with Rapid for all your OSM editing needs. Includes automatic rewrites from osm.org and Strava support", - "version": "0.5.0", + "version": "0.5.1", "minimum_chrome_version": "88", "action": { "default_icon": { diff --git a/firefox/manifest.json b/firefox/manifest.json index 5216970..2ac5dcd 100644 --- a/firefox/manifest.json +++ b/firefox/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Rapid Power User Extension", "description": "Fully replace iD with Rapid for all your OSM editing needs. Includes automatic rewrites from osm.org and Strava support", - "version": "0.5.0", + "version": "0.5.1", "browser_specific_settings": { "gecko": { "id": "rapid-power-user-extension@github.com", diff --git a/package-extension.sh b/package-extension.sh index bccca09..fc72cde 100755 --- a/package-extension.sh +++ b/package-extension.sh @@ -1,2 +1,2 @@ -VERSION="0.5.0" +VERSION="0.5.1" cd chrome/ && rm -rf _metadata && zip -r ../dist/chrome-${VERSION}.zip * && cd ../firefox/ && zip -r ../dist/firefox-${VERSION}.zip * \ No newline at end of file diff --git a/shared/options/options.html b/shared/options/options.html index fc5329e..7f57942 100644 --- a/shared/options/options.html +++ b/shared/options/options.html @@ -19,7 +19,7 @@

Rapid Options

- + diff --git a/shared/options/options.js b/shared/options/options.js index 3dad642..aa52c64 100644 --- a/shared/options/options.js +++ b/shared/options/options.js @@ -45,15 +45,6 @@ async function saveOptions(e) { } async function toggleRapidOptions() { - const useCanary = document.querySelector('#use-canary').checked; - if (!useCanary) { - document.querySelector('#use-webgpu').disabled = true; - document.querySelector('#use-webgpu').checked = false; - } else { - document.querySelector('#use-webgpu').disabled = false; - const { useWebGPU } = await chrome.storage.local.get('useWebGPU'); - document.querySelector('#use-webgpu').checked = useWebGPU; - } const updateDynamically = document.querySelector('#update-dynamically').checked; document.querySelector('#show-buildings').disabled = updateDynamically; @@ -113,6 +104,5 @@ async function restoreOptions() { document.addEventListener('DOMContentLoaded', restoreOptions); document.querySelector("form").addEventListener("submit", saveOptions); -document.querySelector('#use-canary').addEventListener('change', toggleRapidOptions); document.querySelector('#update-dynamically').addEventListener('change', toggleRapidOptions); document.querySelector('#enable-strava').addEventListener('change', toggleStravaOptions); \ No newline at end of file