This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default { | |
/** | |
* This will ask for ALL items from chrome storage and return only the ones we're interested in. | |
* @param type | |
*/ | |
getAll (type) { | |
return this.get(null).then(allItems => { | |
return allItems.filter(f => f && f.type && f.type === type) | |
}) |