Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uncaught TypeError: Failed to execute 'insertRule' on 'CSSStyleSheet': 2 arguments required, but only 1 present [closed]

Tags:

javascript

Latest version of Google Chrome & Opera are throwing this error:

Uncaught TypeError: Failed to execute 'insertRule' on 'CSSStyleSheet': 2 arguments required, but only 1 present.

Any ideas where this new bug is coming from and how to fix?

like image 497
Travis Skweres Avatar asked Nov 15 '13 20:11

Travis Skweres


1 Answers

More information: still understanding what this is, but someone pushed out bad code and hosed us all somehow:

http://code.google.com/p/chromium/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Pri%20M%20Iteration%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified&groupby=&sort=&id=319695


EDIT: this issue seems to have come from a recent Chromium update, which is breaking Neteye. Disabling Neteye for the moment seems to be the solution, while they iron out what to do or update Neteye

EDIT: this may supply a fix - seems like the PR never made it in https://github.com/bizzynut/jquery-plugins/commit/f000dc6347fbcabf4e3fd47732ddd97c73067755

SOLUTION: above fix works for solving NetEye issue

activity-indicator.js line 150: - document.styleSheets[0].insertRule(rule); + document.styleSheets[0].insertRule(rule, 0);

like image 82
jmadsen Avatar answered Sep 21 '22 09:09

jmadsen