diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-05-25 22:00:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 22:00:26 +0200 |
commit | d5459982f0d1bab08b751dc140c4cbe047032617 (patch) | |
tree | 0dfe07f8e1b8d121d12de8d16df524db344c6826 /browser/base/content/aboutProviderDirectory.xhtml | |
parent | edccc615f9435d658febac9be2299542349e2b08 (diff) | |
parent | f786134c442da55a2a45e1422ef8530c892899b6 (diff) | |
download | UXP-d5459982f0d1bab08b751dc140c4cbe047032617.tar UXP-d5459982f0d1bab08b751dc140c4cbe047032617.tar.gz UXP-d5459982f0d1bab08b751dc140c4cbe047032617.tar.lz UXP-d5459982f0d1bab08b751dc140c4cbe047032617.tar.xz UXP-d5459982f0d1bab08b751dc140c4cbe047032617.zip |
Merge pull request #381 from Ascrod/master
Remove the Social API
Diffstat (limited to 'browser/base/content/aboutProviderDirectory.xhtml')
-rw-r--r-- | browser/base/content/aboutProviderDirectory.xhtml | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/browser/base/content/aboutProviderDirectory.xhtml b/browser/base/content/aboutProviderDirectory.xhtml deleted file mode 100644 index 596ede4b3..000000000 --- a/browser/base/content/aboutProviderDirectory.xhtml +++ /dev/null @@ -1,60 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- This Source Code Form is subject to the terms of the Mozilla Public - - License, v. 2.0. If a copy of the MPL was not distributed with this - - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> - -<!DOCTYPE html [ - <!ENTITY % htmlDTD - PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "DTD/xhtml1-strict.dtd"> - %htmlDTD; - <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" > - %brandDTD; - <!ENTITY % browserDTD SYSTEM "chrome://browser/locale/browser.dtd"> - %browserDTD; -]> - -<html xmlns="http://www.w3.org/1999/xhtml"> - <head> - <title>&social.directory.label;</title> - <link rel="stylesheet" type="text/css" media="all" - href="chrome://browser/skin/aboutProviderDirectory.css"/> - </head> - - <body> - <div id="activation-link" hidden="true"> - <div id="message-box"> - <p>&social.directory.text;</p> - </div> - <div id="button-box"> - <button onclick="openDirectory()">&social.directory.button;</button> - </div> - </div> - <div id="activation" hidden="true"> - <p>&social.directory.introText;</p> - <div><iframe id="activation-frame"/></div> - <p><a class="link" onclick="openDirectory()">&social.directory.viewmore.text;</a></p> - </div> - </body> - - <script type="text/javascript;version=1.8"><![CDATA[ - const Cu = Components.utils; - - Cu.import("resource://gre/modules/Services.jsm"); - - function openDirectory() { - let url = Services.prefs.getCharPref("social.directories").split(',')[0]; - window.open(url); - window.close(); - } - - if (Services.prefs.getBoolPref("social.share.activationPanelEnabled")) { - let url = Services.prefs.getCharPref("social.shareDirectory"); - document.getElementById("activation-frame").setAttribute("src", url); - document.getElementById("activation").removeAttribute("hidden"); - } else { - document.getElementById("activation-link").removeAttribute("hidden"); - } - ]]></script> -</html> |