Skip to content

Commit

Permalink
contextProxySwitch.uc.xul fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Oct 12, 2013
1 parent e03b241 commit a96a93b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contextProxySwitch.uc.xul
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@
if(targetWindow.document.doctype){
sel = targetWindow.getSelection();
} else {
sel = targetWindow.getSelection().anchorNode.data;
sel = targetWindow.getSelection();
if(sel){
sel = sel.anchorNode.data;
}
}
// for textfields
Expand Down

0 comments on commit a96a93b

Please sign in to comment.