Update cm.window.title API.
Update cm.window.title API.

Replace ternary operators with if logic.

alexispeter/CM,vogdb/cm,alexispeter/CM,mariansollmann/CM,vogdb/cm,fauvel/CM,fauvel/CM,fauvel/CM,mariansollmann/CM,fvovan/CM,fauvel/CM,tomaszdurka/CM,zazabe/cm,zazabe/cm,tomaszdurka/CM,zazabe/cm,tomaszdurka/CM,cargomedia/CM,alexispeter/CM,vogdb/cm,fauvel/CM,cargomedia/CM,tomaszdurka/CM,zazabe/cm,cargomedia/CM,fvovan/CM,vogdb/cm,alexispeter/CM,njam/CM,njam/CM,cargomedia/CM,tomaszdurka/CM,fvovan/CM,fvovan/CM,njam/CM,njam/CM,mariansollmann/CM,njam/CM,mariansollmann/CM,vogdb/cm