Skip to content

Commit

Permalink
chore: add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Nov 19, 2023
1 parent 1a89b61 commit 86436e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/bg/action.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { browserAction, /*webNavigation,*/ type Tabs, tabs } from 'webextension-polyfill';
import { browserAction, webNavigation, type Tabs, tabs } from 'webextension-polyfill';
import { getHostname, invertHostState } from './utils/storage';
//import { matcher as mapsUrlMatcher, runtimeMapUrl } from './bg';
import { matcher as mapsUrlMatcher, runtimeMapUrl } from './bg';

//const replacedUrlMatcher = new RegExp(`^${runtimeMapUrl}\?`);
const replacedUrlMatcher = new RegExp(`^${runtimeMapUrl}\?`);

/**
* Async function to react to clicks on the browser action icon.
Expand All @@ -19,6 +19,7 @@ async function actionClick(tab: Tabs.Tab): Promise<void> {
await invertHostState(hostname);

/*
// TODO: try to only reload necessary parts!!!
let frames = (await webNavigation.getAllFrames({ tabId: tab.id })) ?? [];
if (
Expand Down
3 changes: 2 additions & 1 deletion src/map/utils/zoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ const precision: number = 10;

/**
* Converts *altitude over the map* to *zoom level of the map*
*
* TODO: Should be rewritten!!!
*
* Reference: https://groups.google.com/g/google-earth-browser-plugin/c/eSL9GlAkWBk/m/T4mdToJz_FgJ
* @param alt Altitude as number
* @returns Zoom level between 0 and 19
Expand Down

0 comments on commit 86436e0

Please sign in to comment.