Skip to content

Commit

Permalink
Tons of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriotaques committed Feb 7, 2019
1 parent c1a63ca commit 83a3ffd
Show file tree
Hide file tree
Showing 14 changed files with 9,066 additions and 533 deletions.
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# ----------------------------------------
# EditorConfig: Defines and enforce the
# consistency of coding styles.
# ----------------------------------------

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
14 changes: 14 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"env": {
"browser": true,
"node": true
},
"extends": ["prettier-airbnb"],
"rules": {
"no-extra-semi": "off",
"operator-linebreak": "off",
"prefer-template": "off",
"space-before-function-paren": "off",
"wrap-iife": "off"
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.DS_Store
2 changes: 2 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const options = require('eslint-config-prettier-airbnb/prettier');
module.exports = options;
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Release notes

- v1.8 - Add editorconfig, eslint and prevent wiping classes from HTML before injection.
- v1.7 - Fixed a small bug regarding global variable
- v1.6 - Add a listener to reanalyse page on resize event
- v1.4 ~ v1.5 - Bug fixes for detecting Android Stock Browser and some improvements
- v1.3 - Start detecting Android Stock Browser
- v1.2 - Start detecting when device runs iOS
- v1.1 - Added support for Microsoft Edge
- v1.0 - First release. Totally rewritten and new detectings added.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015 Rogério Taques
Copyright (c) 2015-2019 Rogério Taques

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 4 additions & 0 deletions dist/detectr.js

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

Loading

0 comments on commit 83a3ffd

Please sign in to comment.