Skip to content

Commit

Permalink
moved default values
Browse files Browse the repository at this point in the history
420 mobile is now 320
new break: 0 -> 319 is now 'sub-mobile'
  • Loading branch information
Marco 'Gatto' Boffo committed Dec 22, 2016
1 parent fbfd2ed commit b3c26fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/vue-viewports.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-viewports",
"version": "1.1.3",
"version": "2.0.0",
"description": "define your custom viewports and use them in your components",
"author": {
"name": "Marco Boffo",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'core-js/fn/array/find'
import VueThrottleEvent from 'vue-throttle-event'

const VueViewports = {
install (Vue, options = { 420: 'mobile', 768: 'tablet', 1024: 'desktop', 1920: 'hd-desktop', 2560: 'qhd-desktop', 3840: 'uhd-desktop' }) {
install (Vue, options = { 0: 'sub-mobile', 320: 'mobile', 768: 'tablet', 1024: 'desktop', 1920: 'hd-desktop', 2560: 'qhd-desktop', 3840: 'uhd-desktop' }) {
// setup event name
let updateEventName = 'VueViewports$updateCurrentViewport'
Vue.prototype.$viewportsUpdateEventName = updateEventName
Expand Down

0 comments on commit b3c26fb

Please sign in to comment.