Files
tubestation/devtools/client/responsive.html/utils/css.js
J. Ryan Stinnett 1604814567 Bug 1353045 - Remove SDK usage from RDM. r=pbro
MozReview-Commit-ID: I2dodBb9NHh
2017-04-06 21:42:21 -05:00

19 lines
691 B
JavaScript

/* 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/. */
"use strict";
const { getDOMWindowUtils } = require("./window");
/**
* Synchronously loads an agent style sheet from `uri` and adds it to the list of
* additional style sheets of the document. The sheets added takes effect immediately,
* and only on the document of the `window` given.
*/
function loadAgentSheet(window, url) {
let winUtils = getDOMWindowUtils(window);
winUtils.loadSheetUsingURIString(url, winUtils.AGENT_SHEET);
}
exports.loadAgentSheet = loadAgentSheet;