Skip to content

stealjs/platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

steal-platform

Detects common platforms. Use when special logic is needed (such as needing to specify a full URL for Ajax requests when using Cordova.

Install

npm install steal-platform --save

Use

var platform = require("steal-platform");

if(platform.isDesktopBrowser) {
 ...
}

License

MIT