mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Protection if someone did change defaults for mms or mmsto
This commit is contained in:
@@ -99,6 +99,11 @@ function toggleProtocolHandler(branch, name)
|
|||||||
var register = branch.getBoolPref(name);
|
var register = branch.getBoolPref(name);
|
||||||
// Retrieve the object for that protocol
|
// Retrieve the object for that protocol
|
||||||
var protocolHandler = sendToPhoneProtocols[ name ];
|
var protocolHandler = sendToPhoneProtocols[ name ];
|
||||||
|
// If someone did change the defaults for mms or mmsto this
|
||||||
|
// function will be called, but the handlers have been removed.
|
||||||
|
if (!protocolHandler)
|
||||||
|
return;
|
||||||
|
|
||||||
var proto = protocolHandler.prototype;
|
var proto = protocolHandler.prototype;
|
||||||
|
|
||||||
if (register)
|
if (register)
|
||||||
|
|||||||
Reference in New Issue
Block a user