// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-var localStrings;
var browserBridge;
/**
$('warning-text').textContent = this.state.warningText;
if (this.isInitialState() && this.state != State.StatesEnum.DEVICE_NONE) {
- $('warning-button').textContent = localStrings.getString('confirmButton');
+ $('warning-button').textContent = loadTimeData.getString('confirmButton');
} else if (this.state == State.StatesEnum.FAIL) {
$('warning-button').textContent =
- localStrings.getString('retryButton');
+ loadTimeData.getString('retryButton');
}
},
this.selectedDevice = devicePath;
$('warning-text').textContent =
- localStrings.getStringF('warningDevices', label);
+ loadTimeData.getStringF('warningDevices', label);
},
/**
* @constructor
*/
function BrowserBridge() {
- this.currentState = new State(localStrings);
+ this.currentState = new State(loadTimeData);
this.deviceSelection = new DeviceSelection();
// We will use these often so it makes sence making them class members to
// avoid frequent document.getElementById calls.
reportDeviceTooSmall: function(deviceSize) {
this.currentState.changeState(State.StatesEnum.ERROR_DEVICE_TOO_SMALL);
$('warning-text').textContent =
- localStrings.getStringF('warningNoSpace', deviceSize);
+ loadTimeData.getStringF('warningNoSpace', deviceSize);
},
/**
};
document.addEventListener('DOMContentLoaded', function() {
- localStrings = new LocalStrings();
browserBridge = new BrowserBridge();
- jstProcess(new JsEvalContext(templateData), $('more-info-link'));
-
$('cancel-button').onclick =
browserBridge.sendCancelMessage.bind(browserBridge);
browserBridge.sendGetDevicesMessage();