IBM RTC ccm work item java script, how detect or know when WI was created via OSLC vs Web interface
One answer
The Work Item Proxy class is only available in the web client, and the same for the dojo libraries.
You can set up your JavaScript to check for either of these in order to work out if you're in the Web Client or somewhere else. Something like this should work:
if (typeof dojo.xhrGet === 'undefined') {
console.log('We are not in the Web client any more, Toto');
} else {
console.log('My spider senses are tingling! We are in the Web client');
}