Bug 1798651 Part 1: Make SynchronousTask accept a wait interval, and return result...
[gecko.git] / toolkit / content / aboutGlean.js
blobd5063de50fe27752c9a875dde9207ebdba212f22
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 "use strict";
7 function onLoad() {
8   document.getElementById("controls-submit").addEventListener("click", () => {
9     let tag = document.getElementById("tag-pings").value;
10     let log = document.getElementById("log-pings").checked;
11     let send = document.getElementById("send-pings").value;
12     Services.fog.setLogPings(log);
13     Services.fog.setTagPings(tag);
14     Services.fog.sendPing(send);
15   });
18 window.addEventListener("load", onLoad);