Comments (8)
Hi,
Thanks for using this lib!
If you run the demo as specified here and open the test-global.html
do you still have the same error ?
By the way, it's strange that Factory
has an uppercase F
from vh-check.
Running npm test gives me the error
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/jawidmer/.nvm/versions/node/v6.9.4/bin/node" "/Users/jawidmer/.nvm/versions/node/v6.9.4/bin/npm" "test"
npm ERR! node v6.9.4
npm ERR! npm v4.2.0
npm ERR! path /Users/jawidmer/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/Users/jawidmer/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '/Users/jawidmer/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /Users/jawidmer/.npm/_logs/2017-02-06T14_09_58_700Z-debug.log
from vh-check.
@janwidmer you should run the commands inside the vh-check
folder, at the same level as the package.json
from vh-check.
ah yeah, sorry..my bad. Your demo works.. so I guess, my environment somehow leads to that behaviour.. in your demo, the root parameter is the window as it should be, in my case, it is always undefined..
from vh-check.
Are you compressing the file in anyway ? or using it along other files ? In which browser are you using it ?
from vh-check.
It gets assembled to an app.js file, which contains all js files.. I am using it in chrome vs. 55
from vh-check.
So it may be while concatenating your files that the window object becomes unaccessible to my script.
You should try to load it independently to see if it comes from here or not.
from vh-check.
ok I'll try that..since it works in your demo, its clearly related to my build..I will therefore close the issue. Thanks for your help
from vh-check.
Related Issues (20)
- Publish actual code to NPM HOT 4
- NPM – shouldn't have .vscode folder published on npm
- Doesn't apply to Chrome / Android HOT 2
- should allow another way of computing the size
- calling multiple times vhCheck() will bind multiple time the orientationchange event
- Not working on new chrome ios HOT 6
- Value changes on zoom HOT 5
- IE11 - Object doesn't support property or method 'assign' HOT 3
- TESTS – add for real browsers starting at IE11
- Issues with TypeScript HOT 5
- Help: How can I use it with sass or vue? HOT 2
- Docs: bind boolean value HOT 1
- Get if the bottom bar is opened or closed HOT 4
- updateOnTouch only works when i touch again HOT 1
- Doesn't seem to work on Iphone X HOT 5
- Does not work in iOS Chrome HOT 1
- isNeeded = false for iPhone/Safari when target=_blank HOT 2
- Bottom gap on mobile Firefox
- Does not work correctly in a PWA standalone web app HOT 2
- All iphone phones with full screen cannot use this set of plug-ins.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vh-check.