Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/ext/popup.js

Issue 5183241912844288: Issue 380 - Fixed width of bubble in Safari with long translated texts (Closed)
Patch Set: Created April 26, 2014, 1:34 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | popup.html » ('j') | popup.html » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/ext/popup.js
===================================================================
--- a/chrome/ext/popup.js
+++ b/chrome/ext/popup.js
@@ -1,8 +1,14 @@
-window.ext = {
- __proto__: chrome.extension.getBackgroundPage().ext,
+(function() {
+ var style = document.createElement("style");
+ style.textContent = ".safari-only { display: none; }";
+ document.head.appendChild(style);
Wladimir Palant 2014/04/30 13:57:57 The assumption here is that it is either Safari or
Sebastian Noack 2014/04/30 15:37:48 Done.
- closePopup: function()
- {
- window.close();
- }
-};
+ window.ext = {
+ __proto__: chrome.extension.getBackgroundPage().ext,
+
+ closePopup: function()
+ {
+ window.close();
+ }
+ };
+})();
« no previous file with comments | « no previous file | popup.html » ('j') | popup.html » ('J')

Powered by Google App Engine
This is Rietveld