VulpesOS/assets/webapps/system.gaiamobile.org/fxa/js/fxam_module.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

3 lines
No EOL
1.5 KiB
JavaScript

;'use strict';var FxaModule=(function(){var Module={initialized:false,init:function fxam_init(){},onNext:function fxam_onNext(gotoNextStepCallback){},onBack:function fxam_onBack(){},onDone:function fxam_onDone(doneCallback){doneCallback();},importElements:function fxam_importElements(){var args=[].slice.call(arguments);args.unshift(this);HtmlHelper.importElements.apply(null,args);},showErrorResponse:function fxam_showErrorResponse(response){var resp=response;if(window.location.search.indexOf('isftu')!=-1&&resp=='OFFLINE_ERROR'){resp='CONNECTION_ERROR';}
FxaModuleOverlay.hide();LazyLoader.load('js/fxam_errors.js',()=>{var config=FxaModuleErrors.responseToParams(resp);FxaModuleErrorOverlay.show(config.title,config.message,resp);if(resp&&resp.error==='COPPA_ERROR'){var link=FxaModuleErrorOverlay.fxaErrorMsgCoppa.querySelector('#coppa-link');link.addEventListener('click',this.onCopaLinkClick);}});},onCopaLinkClick:function(e){e.preventDefault();if(this.entrySheet){this.entrySheet.close();this.entrySheet=null;}
var coppaUrl='http://www.ftc.gov/news-events/media-resources/'+'protecting-consumer-privacy/kids-privacy-coppa';this.entrySheet=new EntrySheet(window.top.document.getElementById('screen'),'URL:'+coppaUrl,new BrowserFrame({url:coppaUrl,oop:true}));this.entrySheet.open();},hideErrorResponse:function fxam_hideErrorResponse(){var link=FxaModuleErrorOverlay.fxaErrorMsgCoppa.querySelector('#coppa-link');link.removeEventListener('click',this.onCopaLinkClick);FxaModuleErrorOverlay.hide();FxaModuleOverlay.hide();}};return Module;}());