Skip to content

Commit

Permalink
Add browser engine check method. Pray it isn't abused.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Boucher committed Sep 29, 2008
1 parent c943eef commit 7f942e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AppKit/CPCompatibility.j
Expand Up @@ -137,6 +137,11 @@ function CPFeatureIsCompatible(aFeature)
return PLATFORM_FEATURES & aFeature;
}

function CPBrowserIsEngine(anEngine)
{
return PLATFORM_ENGINE == anEngine;
}

if (USER_AGENT.indexOf("Mac") != -1)
{
CPPlatformActionKeyMask = CPCommandKeyMask;
Expand Down

0 comments on commit 7f942e5

Please sign in to comment.