Skip to content

Commit

Permalink
update options now that webgpu is available in the latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonveenstra committed Dec 24, 2024
1 parent 605f7c2 commit 323db85
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion package-extension.sh
Original file line number Diff line number Diff line change
@@ -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 *
2 changes: 1 addition & 1 deletion shared/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h2>Rapid Options</h2>
</span>
</div>
<div class="slider-wrapper">
<label for="use-webgpu">Use WebGPU Renderer (canary only)</label>
<label for="use-webgpu">Use WebGPU Renderer</label>
<span>
<input id="use-webgpu" type="checkbox" class="switch">
</span>
Expand Down
10 changes: 0 additions & 10 deletions shared/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

0 comments on commit 323db85

Please sign in to comment.