Skip to content

Instantly share code, notes, and snippets.

View smolinari's full-sized avatar
😜
What the heck do you think my status is?

Scott smolinari

😜
What the heck do you think my status is?
View GitHub Profile
@smolinari
smolinari / content-hooks.js
Created April 28, 2020 12:11
The Quasar Todo example browser extension content hook file.
const
iFrame = document.createElement('iframe'),
defaultFrameHeight = '0px',
defaultFrameWidth = '0px'
/**
* Set the height of our iFrame housing our BEX
* @param height
*/
const setIFrameDimensions = (height, width) => {
@smolinari
smolinari / db.js
Created April 29, 2020 11:34
The services/db.js file for the Quasar todo browser extension demo
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)
})