Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
20 lines
516 B
JavaScript
Executable file
20 lines
516 B
JavaScript
Executable file
/* global FxAccountsIACHelper, FxaMenu */
|
|
|
|
'use strict';
|
|
|
|
require(['shared/lazy_loader'], function(LazyLoader) {
|
|
var idleObserver = {
|
|
time: 4,
|
|
onidle: function() {
|
|
navigator.removeIdleObserver(idleObserver);
|
|
LazyLoader.load([
|
|
'/shared/js/fxa_iac_client.js',
|
|
'/shared/js/text_normalizer.js',
|
|
'js/firefox_accounts/menu.js'
|
|
], function fxa_menu_loaded() {
|
|
FxaMenu.init(FxAccountsIACHelper);
|
|
});
|
|
}
|
|
};
|
|
navigator.addIdleObserver(idleObserver);
|
|
});
|