codename Allegra preview program



Using codename Allegra platform in your gadget


How to check whether running on codename Allegra platform?

Javasript

var isAllegra;

...

try {
    //running on codename Allegra platform
    if (System.HostName=="ALLEGRA") isAllegra = true;
} catch (e) {
    /running on Vista/7 Sidebar
    isAllegra = false;
}