Skip to content

Instantly share code, notes, and snippets.

@hc5duke
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hc5duke/9010790 to your computer and use it in GitHub Desktop.
Save hc5duke/9010790 to your computer and use it in GitHub Desktop.

Note: This appears to be fixed now

It seems Screen Capture Chrome extension causes imo.im to not load. This is repeatable by toggling the extension and refreshing imo.im while logged in. There are actually two issues here that I noticed:

  1. Uncaught TypeError: Cannot read property 'length' of null - this appears to be related to the extension, happens inside the imo angular module, so I'm not entirely sure. It's the last line here:
if (Os.which === Os.MAC) {
  _ref = document.styleSheets;
  _results = [];
  for (_i = 0, _len = _ref.length; _i < _len; _i++) {
    sheet = _ref[_i];
    _results.push((function() {
      var _j, _len1, _ref1, _ref2, _results1;
      _ref1 = sheet.rules || sheet.cssRules;
      _results1 = [];
      for (idx = _j = 0, _len1 = _ref1.length; _j < _len1; idx = ++_j) {

I'm also a little bit surprised there is no js minification going on here.

  1. When this fails, the image on the error page also doesn't load, likely because it's missing http:// in front, and it tries to render https://imo.im/placehold.it/200/f00 instead of placehold.it/200/f00.

2b) I guess there is sort of a third issue where you need a proper error image here instead of this placeholder.it image:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment