Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "ti.detect", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A simple Titanium library to detect things", | ||
@@ -5,0 +5,0 @@ "main": "ti.detect.js", |
@@ -23,3 +23,3 @@ var hasNotch = false; | ||
function init(){ | ||
hasNotch = OS_IOS && hasIOSNotch(); | ||
hasNotch = Ti.Platform.osname === 'iphone' && hasIOSNotch(); | ||
Alloy.CFG.TiDetect.statusbarHeight = hasNotch ? 44 : 20; | ||
@@ -30,1 +30,7 @@ Alloy.CFG.TiDetect.hasNotch = hasNotch; | ||
init(); | ||
// exporting init function. There is no need to call this | ||
// unless you want to re-evaluate properties. (which shouldn't be needed at all) | ||
module.exports = { | ||
init: init | ||
}; |
3676
29