Fx60: Add missing UA styles to styles page
For some reason the standard UA styles are no longer included in HTML files loaded in a <browser> in Firefox 60.
This commit is contained in:
parent
dc8a45485c
commit
a3668850eb
1 changed files with 5 additions and 2 deletions
|
@ -125,8 +125,11 @@ Zotero_Preferences.Cite = {
|
|||
// (The first two aren't sent to the client normally, but hide anyway in case they are.)
|
||||
var style = doc.createElement('style');
|
||||
style.type = 'text/css';
|
||||
style.innerHTML = 'h1, #intro, .style-individual-link, .style-view-source { display: none !important; }';
|
||||
Zotero.debug(doc.documentElement.innerHTML);
|
||||
style.innerHTML = 'h1, #intro, .style-individual-link, .style-view-source { display: none !important; }'
|
||||
// TEMP: Default UA styles that aren't being included in Firefox 60 for some reason
|
||||
+ 'html { background: #fff; }'
|
||||
+ 'a { color: rgb(0, 0, 238) !important; text-decoration: underline; }'
|
||||
+ 'a:active { color: rgb(238, 0, 0) !important; }';
|
||||
doc.getElementsByTagName('head')[0].appendChild(style);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue