Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
26 lines
678 B
JavaScript
26 lines
678 B
JavaScript
'use strict';
|
|
|
|
/*
|
|
var ringer = function callsHandler() {
|
|
var phoneSoundURL = new SettingsURL();
|
|
SettingsListener.observe('dialer.ringtone', '', function(value) {
|
|
ringtonePlayer.pause();
|
|
ringtonePlayer.src = phoneSoundURL.set(value);
|
|
});
|
|
var ringtonePlayer = ringtonePlayer;
|
|
ringtonePlayer = new Audio();
|
|
ringtonePlayer.mozAudioChannelType = 'ringer';
|
|
ringtonePlayer.src = phoneSoundURL.get();
|
|
ringtonePlayer.loop = false;
|
|
|
|
window.addEventListener('home', function (evt) {
|
|
evt.preventDefault();
|
|
ringtonePlayer.play();
|
|
});
|
|
window.addEventListener('click', function (evt) {
|
|
evt.stopPropagation();
|
|
ringtonePlayer.play();
|
|
});
|
|
}();
|
|
|
|
*/
|