aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/audio-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/settings/audio-controller.js')
-rw-r--r--ext/bg/js/settings/audio-controller.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/ext/bg/js/settings/audio-controller.js b/ext/bg/js/settings/audio-controller.js
index bd7951f7..6ea11e15 100644
--- a/ext/bg/js/settings/audio-controller.js
+++ b/ext/bg/js/settings/audio-controller.js
@@ -136,12 +136,6 @@ class AudioController {
}
}
- _instantiateTemplate(templateSelector) {
- const template = document.querySelector(templateSelector);
- const content = document.importNode(template.content, true);
- return content.firstChild;
- }
-
_getUnusedAudioSource() {
const audioSourcesAvailable = [
'jpod101',
@@ -159,7 +153,7 @@ class AudioController {
_createAudioSourceEntry(value) {
const eventListeners = new EventListenerCollection();
- const container = this._instantiateTemplate('#audio-source-template');
+ const container = this._settingsController.instantiateTemplate('audio-source');
const select = container.querySelector('.audio-source-select');
const removeButton = container.querySelector('.audio-source-remove');