Moving manifest/serviceworker into build script

This commit is contained in:
James Barnsley
2018-07-22 21:22:35 +12:00
parent 618d03e42d
commit fa4d039375
18 changed files with 796 additions and 751 deletions

View File

@ -113,28 +113,13 @@ export function set(data){
}
}
/**
* Modal
*
* Immersive full-screen dialog
**/
export function openModal(name, data){
return {
type: 'OPEN_MODAL',
modal: {
name: name,
data: data
}
export function installPrompt(event){
return {
type: 'INSTALL_PROMPT',
event: event
}
}
export function closeModal(){
return {
type: 'CLOSE_MODAL'
}
}
/**

View File

@ -36,6 +36,9 @@ export default function reducer(ui = {}, action){
icons[action.key] = action.icon;
return Object.assign({}, ui, {icons : icons});
case 'INSTALL_PROMPT':
return Object.assign({}, ui, {install_prompt : action.event});
/**
* Context menu