spratt / AtomBlog.js

A simple blog using javascript to parse and display an atom feed
http://spratt.github.io/AtomBlog.js/
ISC License
1 stars 0 forks source link

Permalink doesn't work #4

Closed cdelahousse closed 11 years ago

cdelahousse commented 11 years ago

I tried to access your site directly from my feed reader.

http://pr4tt.com/index.html?metrics isn't rendering anything.

Tested with Chrome 27.

spratt commented 11 years ago

That's odd. Link works for me.

cdelahousse commented 11 years ago

This is probably a firefox/chrome issue.

I didn't give you any details about the bug. Sorry.

I get the following exception thrown: Uncaught TypeError: Object metrics has no method 'endsWith' from line 79

spratt commented 11 years ago

Crap...I must have used FF specific code.

spratt commented 11 years ago

That's weird. It works in Firefox 20, Chromium 17, and Chrome 18. (All the browsers on my lab computer.)

MDN doesn't say it's non-standard: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/String/endsWith

Sounds like it was introduced in Firefox 18, so it is fairly recent.

cdelahousse commented 11 years ago

It doesn't work in Chromium Version 25.0.1364. It does work in Firefox though.

Have you tried running it with an empty cache?

spratt commented 11 years ago

That did it. Looks like I'll need to add the polyfill for that method.

cdelahousse commented 11 years ago

Or just not use that method.

spratt commented 11 years ago

I pushed a version with the polyfill to github (can't update my blog easily until I go home). Test the new version at: http://spratt.github.io/AtomBlog.js/ and let me know if the issue is resolved.

cdelahousse commented 11 years ago

Works.