Permalink
Browse files

Merge pull request #45 from LoicMahieu/patch-1

Fix issue #43 (Cannot call method 'splice')
  • Loading branch information...
2 parents 16afd5a + 169eb73 commit e5bb00e5f67f279a100cdb72f29f72e8a737873c @andrewdavey committed Jan 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/client/vogue-client.js
@@ -230,7 +230,7 @@
scripts = document.getElementsByTagName("script");
for (var i=0; i < scripts.length; i++) {
src = scripts[i].getAttribute("src");
- if (src.slice(-15) === 'vogue-client.js') break;
+ if (src && src.slice(-15) === 'vogue-client.js') break;
}
rootUrl = src.match(/^https?\:\/\/(.*?)\//)[0];
// There is an optional base argument, that can be used.

0 comments on commit e5bb00e

Please sign in to comment.