mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Fixed cheeky assignment
This commit is contained in:
@@ -213,12 +213,10 @@
|
||||
* @private
|
||||
*/
|
||||
setPlatform: function(n) {
|
||||
var override;
|
||||
|
||||
if (typeof n != 'undefined' && n !== null && n.length) {
|
||||
platformName = n.toLowerCase();
|
||||
} else if(override = getParameterByName('ionicplatform')) {
|
||||
platformName = override;
|
||||
} else if(getParameterByName('ionicplatform')) {
|
||||
platformName = getParameterByName('ionicplatform');
|
||||
} else if (this.ua.indexOf('Android') > 0) {
|
||||
platformName = ANDROID;
|
||||
} else if (this.ua.indexOf('iPhone') > -1 || this.ua.indexOf('iPad') > -1 || this.ua.indexOf('iPod') > -1) {
|
||||
|
||||
Reference in New Issue
Block a user