Skip to content

Commit cd0ee4c

Browse files
committed
Chrome browser compatibility;
1 parent d541cd6 commit cd0ee4c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Github_Comment_Enhancer/Github_Comment_Enhancer.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// ==/UserScript==
2525
/* global unsafeWindow */
2626

27-
(function() {
27+
(function(unsafeWindow) {
2828

2929
String.format = function(string) {
3030
var args = Array.prototype.slice.call(arguments, 1, arguments.length);
@@ -749,4 +749,4 @@
749749
}).observe(file, { childList: true, subtree: true });
750750
});
751751

752-
})();
752+
})(typeof unsafeWindow !== "undefined" ? unsafeWindow : window);

0 commit comments

Comments
 (0)