The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Drop Firefox warning

These changes was commited to the Birdfont repository Sun, 15 Sep 2019 19:27:13 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 15 Sep 2019 19:27:13 +0000 (21:27 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 15 Sep 2019 19:27:13 +0000 (21:27 +0200)
commit 2183271205eccd3587a2c512248e117fd8263b7a
tree 83c0e2635af88b0aa170f3ceb53e95c23fbcde33
parent 1efecf45fde88a582fb0408edf842448afad6925
Drop Firefox warning

libbirdfont/ExportTool.vala
--- a/libbirdfont/ExportTool.vala +++ b/libbirdfont/ExportTool.vala @@ -402,33 +402,8 @@ span.capstosmallcaps { font-variant-caps: all-small-caps; font-feature-settings: "c2sc", "smcp"; - } - - div.firefox_message { - background-color: #00A000; - font-size: 10pt; - padding: 10px 10px 10px 33px; - margin: 0 0 0 0; - width: 100%; - font-family: sans-serif; } </style> - - <script> - window.onload = function() { - if (navigator.userAgent.indexOf("Firefox") > -1 && window.location.protocol == "file:") { - var parent = document.createElement("div"); - var firefoxMessageBox = document.createElement("div"); - firefoxMessageBox.classList.add("firefox_message"); - var message = document.createTextNode("Firefox will not let you load fonts on your " - + "local machine. Ways around it include uploading your files to a server " - + "or usning Chrome."); - firefoxMessageBox.appendChild(message); - parent.appendChild(firefoxMessageBox); - document.body.innerHTML = parent.innerHTML + document.body.innerHTML; - } - } - </script> """); os.put_string (