We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d541cd6 commit cd0ee4cCopy full SHA for cd0ee4c
1 file changed
Github_Comment_Enhancer/Github_Comment_Enhancer.user.js
@@ -24,7 +24,7 @@
24
// ==/UserScript==
25
/* global unsafeWindow */
26
27
-(function() {
+(function(unsafeWindow) {
28
29
String.format = function(string) {
30
var args = Array.prototype.slice.call(arguments, 1, arguments.length);
@@ -749,4 +749,4 @@
749
}).observe(file, { childList: true, subtree: true });
750
});
751
752
-})();
+})(typeof unsafeWindow !== "undefined" ? unsafeWindow : window);
0 commit comments