Skip to content

Commit

Permalink
chore: remove unused permissions store
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Mar 12, 2020
1 parent fbab0f8 commit f9e57b5
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 78 deletions.
18 changes: 0 additions & 18 deletions packages/app/src/extension/background.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,9 @@
import { wrapStore } from 'webext-redux';
import { store } from '../store';
import { doAuthRequest } from '../store/permissions/actions';
import { walletDeserializer } from '../store/ext-store';
import { openPopup } from '../common/utils';

wrapStore(store, {
portName: 'ExPort', // Communication port between the background component and views such as browser tabs.
deserializer: (payload: any) => JSON.parse(payload, walletDeserializer),
serializer: (payload: any) => JSON.stringify(payload),
});

chrome.runtime.onConnect.addListener(port => {
if (port.name === 'Blockstack-ContentScript') {
port.onMessage.addListener(event => {
if (event.method === 'auth') {
store.dispatch(doAuthRequest(event.authRequest));
openPopup(chrome.runtime.getURL('actions.html'));
// window.open(
// chrome.runtime.getURL('actions.html'),
// 'Blockstack',
// 'scrollbars=no,status=no,menubar=no,width=300px,height=200px,left=0,top=0'
// )
}
});
}
});
2 changes: 0 additions & 2 deletions packages/app/src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ import { OnboardingState } from './onboarding/types';

export interface AppState {
wallet: WalletState;
permissions: PermissionsState;
onboarding: OnboardingState;
}

const reducers = combineReducers<AppState>({
wallet: walletReducer,
permissions: permissionsReducer,
onboarding: onboardingReducer,
});

Expand Down
12 changes: 0 additions & 12 deletions packages/app/src/store/permissions/actions.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/app/src/store/permissions/index.ts

This file was deleted.

23 changes: 0 additions & 23 deletions packages/app/src/store/permissions/reducer.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/app/src/store/permissions/selectors.ts

This file was deleted.

15 changes: 0 additions & 15 deletions packages/app/src/store/permissions/types.ts

This file was deleted.

0 comments on commit f9e57b5

Please sign in to comment.