feature/host-overrides (#161)
* configurable host overrides * base host overrides on name of service instead of key and hide the options by default * added unit tests * review changes * Refactor options * Refactor * Update Readme * Pump version and update Changelog Co-authored-by: Tobias Jacksteit <me@xtj7.de>
This commit is contained in:
@@ -8,9 +8,14 @@ import { createServiceFinder } from "utils/urlMatcher"
|
||||
import remoteServices from "./remoteServices"
|
||||
import { ContentMessenger } from "utils/messaging"
|
||||
import "../css/content.scss"
|
||||
import { getSettings } from "./utils/browser"
|
||||
|
||||
const popupRef = createRef()
|
||||
const findService = createServiceFinder(remoteServices)(document)
|
||||
|
||||
let findService
|
||||
getSettings().then((settings) => {
|
||||
findService = createServiceFinder(remoteServices, settings.hostOverrides)(document)
|
||||
})
|
||||
|
||||
chrome.runtime.onConnect.addListener(function (port) {
|
||||
const messenger = new ContentMessenger(port)
|
||||
|
||||
Reference in New Issue
Block a user