Skip to content

Commit

Permalink
Merge pull request #158 from MaxNvk/bugfix/nuxt3-export-named-issue
Browse files Browse the repository at this point in the history
fix of problem with export named 'default' in nuxt 3;
  • Loading branch information
dotneet authored Sep 1, 2023
2 parents c88dcdb + a4734f0 commit c431d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/useDevice.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useNuxtApp } from '#app'
import type { Device } from '../types'

export default function (): Device {
export const useDevice = (): Device => {
return useNuxtApp().$device
}

0 comments on commit c431d94

Please sign in to comment.