Skip to content

Commit

Permalink
fix: some cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
svrnm committed Sep 27, 2022
1 parent 037bc2e commit 58c94c5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
16 changes: 0 additions & 16 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ try {
})

scope.chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
console.log(request)
if (request.receiver && request.receiver === 'background') {
if (typeof request.count === 'number' && typeof sender.tab === 'object' && typeof sender.tab.id === 'number') {
badge.updateDemoCounter(request.count, sender.tab.id)
Expand All @@ -137,18 +136,6 @@ try {
// the service worker wakes up from idle.
let isInitialized = false

// Listens for incomming connections from content
// scripts, or from the popup. This will be triggered
// whenever the extension "wakes up" from idle.
/*
scope.chrome.runtime.onConnect.addListener((port) => {
console.log('wake up', port)
if (port.name === 'DEMO_MONKEY_STORE') {
init()
}
})
*/

const persistentStates = {
configurations: [{
name: 'Example',
Expand Down Expand Up @@ -197,15 +184,13 @@ try {
state.log = []
run(state)
isInitialized = true
console.log('Send message')
scope.chrome.runtime.sendMessage({ type: 'STORE_INITIALIZED' })
}
})
}
init()

function updateStorage(store) {
console.log('Updating Storage.')
const configurations = store.getState().configurations
const settings = store.getState().settings

Expand All @@ -223,7 +208,6 @@ try {
}

function run(state) {
console.log('Background Script started')
const store = createStore(reducers, state)
wrapStore(store, { portName: 'DEMO_MONKEY_STORE' })

Expand Down
2 changes: 0 additions & 2 deletions test/selenium/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ const Base = {
await driver.wait(until.elementsLocated(By.className('toggle-group')))
const button = By.css(`#toggle-${title} input`)
// const status = By.css(`#toggle-${title} > div > input`)
console.log(button)
await driver.findElement(button).click()
const checked = await driver.findElement(button).isSelected()
console.log(checked)
assert.equal(checked, true)
},
disableOptionalFeature: async function (title = 'webRequestHook') {
Expand Down

0 comments on commit 58c94c5

Please sign in to comment.