swipe-pages icon indicating copy to clipboard operation
swipe-pages copied to clipboard

Cannot read property 'style' of null

Open ghost opened this issue 10 years ago • 4 comments

Getting the above error on line 95 of swipe-pages.html:

var isWebkit = document.body.style.webkitTransform !== undefined;

which is stopping the page from loading.

ghost avatar Feb 10 '15 20:02 ghost

Which browser and version are you using / seeing this error in?

On Tue, Feb 10, 2015 at 3:30 PM, Francesca Bradley <[email protected]

wrote:

Getting the above error on line 95 of swipe-pages.html:

var isWebkit = document.body.style.webkitTransform !== undefined;

which is stopping the page from loading.

— Reply to this email directly or view it on GitHub https://github.com/TheSeamau5/swipe-pages/issues/9.

Cheers, Flying Horse Dancing

giantelk avatar Feb 11 '15 01:02 giantelk

It would be helpful to know what browser you're using but in any case, I'll probably end up changing this bit of code. I hate hacks like these and chrome (for whom this hack is targeted towards) is apparently making great strides towards removing the need for stuff like the translateZ hack.

TheSeamau5 avatar Feb 11 '15 03:02 TheSeamau5

I'm using the latest version of chrome. I'm using it within a custom element. When using the version of swipe-pages on github rather than the one provided with the bower install the error occurs on line 83.

ghost avatar Feb 11 '15 14:02 ghost

Any progress on this? I'd love to use this on my app but this error makes it unusable.

Currently using Chrome 42 in OS X.

MrRod avatar May 15 '15 17:05 MrRod