зеркало из https://github.com/mozilla/kitsune.git
remove AAQSystemInfo from global scope
This commit is contained in:
Родитель
3d078070de
Коммит
031054affa
|
@ -4,10 +4,7 @@ import BrowserDetect from "./browserdetect";
|
|||
* Prepopulate system info in AAQ form
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
function AAQSystemInfo($form) {
|
||||
export default function AAQSystemInfo($form) {
|
||||
AAQSystemInfo.prototype.init.call(this, $form);
|
||||
}
|
||||
|
||||
|
@ -203,6 +200,3 @@ import BrowserDetect from "./browserdetect";
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
window.AAQSystemInfo = AAQSystemInfo;
|
||||
})(jQuery);
|
||||
|
|
|
@ -7,6 +7,7 @@ import AjaxPreview from "sumo/js/ajaxpreview";
|
|||
import AjaxVote from "sumo/js/ajaxvote";
|
||||
import { getQueryParamsAsDict, getReferrer, getSearchQuery, unquote } from "sumo/js/main";
|
||||
import Marky from "sumo/js/markup";
|
||||
import AAQSystemInfo from "sumo/js/aaq";
|
||||
|
||||
/*
|
||||
* questions.js
|
||||
|
|
|
@ -35,7 +35,6 @@ const entrypoints = {
|
|||
],
|
||||
questions: [
|
||||
"sumo/js/remote.js",
|
||||
"sumo/js/aaq.js",
|
||||
"sumo/js/questions.js",
|
||||
"sumo/js/tags.filter.js",
|
||||
"sumo/js/tags.js",
|
||||
|
|
|
@ -41,7 +41,6 @@ module.exports = {
|
|||
"gettext": "readonly",
|
||||
"interpolate": "readonly",
|
||||
"Modernizr": "readonly",
|
||||
"AAQSystemInfo": "readonly",
|
||||
"remoteTroubleshooting": "readonly",
|
||||
"d3": "readonly",
|
||||
"abs_y": "readonly",
|
||||
|
|
Загрузка…
Ссылка в новой задаче