Skip to content

Commit

Permalink
fix: use screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cole committed Jul 30, 2024
1 parent 987d3f8 commit 77b72d7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/plugins/screen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,17 @@ export function createScreen (options) {

const updateEvent = debounce(update, delay)

// @todo visualViewport
on(window, 'resize', updateEvent, { passive: true })
return {
install: (app) => {
// @todo visualViewport
on(window, 'resize', updateEvent, { passive: true })

update()
update()

if (classes === true && screen.name === 'xs') {
addClass(document.body, `screen--xs`)
}
if (classes === true && screen.name === 'xs') {
addClass(document.body, `screen--xs`)
}

return {
install: (app) => {
app.provide(BaseKey, screen)
}
}
Expand Down

0 comments on commit 77b72d7

Please sign in to comment.