Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
22 lines
491 B
JavaScript
Executable file
22 lines
491 B
JavaScript
Executable file
/* global Components, Services */
|
|
'use strict';
|
|
|
|
const Cu = Components.utils;
|
|
Cu.import('resource://gre/modules/Services.jsm');
|
|
|
|
Services.obs.addObserver(function(document) {
|
|
if (!document || !document.location) {
|
|
return;
|
|
}
|
|
|
|
var window = document.defaultView;
|
|
|
|
Object.defineProperty(window.wrappedJSObject, 'MockIccInfo', {
|
|
writable: true,
|
|
value: Components.utils.cloneInto({
|
|
mcc: '724',
|
|
mnc: '6'
|
|
}, window)
|
|
});
|
|
}, 'document-element-inserted', false);
|
|
|