The Birdfont Source Code
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
Drop Firefox warning
--- 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 (