Fire an error if a pref used in the UI is missing once all prefs are fetched.
[chromium-blink-merge.git] / chrome / browser / resources / settings / a11y_page / demo.js
blob5ce72c5c34dafe185b95070e9d3aa5ed535a5901
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 /**
6 * Wire up the prefs to the a11y page.
7 */
8 window.onload = function() {
9 var page = document.querySelector('cr-settings-a11y-page');
10 page.prefs = document.querySelector('cr-settings-prefs');