Make window as global explicit in previewPane.js

This commit is contained in:
Tom Byers
2019-08-29 12:23:34 +01:00
parent a67d1901c0
commit af2be185b9

View File

@@ -1,9 +1,8 @@
(function () {
(function (global) {
'use strict';
const root = this,
$ = this.jQuery;
$ = global.jQuery;
let branding_style = $('.multiple-choice input[name="branding_style"]:checked');
@@ -34,4 +33,4 @@
$form.find('button[type="submit"]').text('Save');
$('fieldset').on('change', 'input[name="branding_style"]', setPreviewPane);
})();
})(window);