mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Issue #65 - Remove AppConstants from toolkit/components/printing
This commit is contained in:
parent
d28907df2a
commit
e0ad4cf19a
2 changed files with 7 additions and 3 deletions
|
|
@ -161,10 +161,14 @@
|
|||
|
||||
let $ = id => document.getAnonymousElementByAttribute(this, "anonid", id);
|
||||
let ltr = document.documentElement.matches(":root:-moz-locale-dir(ltr)");
|
||||
#ifdef XP_WIN
|
||||
// Windows 7 doesn't support ⏮ and ⏭ by default, and fallback doesn't
|
||||
// always work (bug 1343330).
|
||||
let {AppConstants} = Components.utils.import("resource://gre/modules/AppConstants.jsm", {});
|
||||
let useCompatCharacters = AppConstants.isPlatformAndVersionAtMost("win", "6.1");
|
||||
let useCompatCharacters = Services.vc.compare(Services.sysinfo.getProperty("version"), "6.1") <= 0;
|
||||
#else
|
||||
let useCompatCharacters = false;
|
||||
#endif
|
||||
|
||||
let leftEnd = useCompatCharacters ? "⏪" : "⏮";
|
||||
let rightEnd = useCompatCharacters ? "⏩" : "⏭";
|
||||
$("navigateHome").label = ltr ? leftEnd : rightEnd;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ toolkit.jar:
|
|||
#endif
|
||||
content/global/printPageSetup.js (content/printPageSetup.js)
|
||||
content/global/printPageSetup.xul (content/printPageSetup.xul)
|
||||
content/global/printPreviewBindings.xml (content/printPreviewBindings.xml)
|
||||
* content/global/printPreviewBindings.xml (content/printPreviewBindings.xml)
|
||||
content/global/printPreviewProgress.js (content/printPreviewProgress.js)
|
||||
content/global/printPreviewProgress.xul (content/printPreviewProgress.xul)
|
||||
content/global/printProgress.js (content/printProgress.js)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue