-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use Promises over callback functions.
BREAKING CHANGE: signature changed to Promises from callbacks
- Loading branch information
Showing
7 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
.DS_Store | ||
node_modules/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
os: osx | ||
osx_image: xcode9.1 | ||
osx_image: xcode9.2 | ||
|
||
language: node_js | ||
node_js: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"use strict"; | ||
var cordova_1 = require("cordova"); | ||
var DetectWebViewEngine = (function () { | ||
function DetectWebViewEngine() { | ||
} | ||
DetectWebViewEngine.isUIWebView = function () { | ||
return new Promise(function (resolve, reject) { | ||
cordova_1.exec(resolve, reject, 'DetectWebViewEngine', 'isUIWebView', []); | ||
}); | ||
}; | ||
DetectWebViewEngine.isWKWebView = function () { | ||
return new Promise(function (resolve, reject) { | ||
cordova_1.exec(resolve, reject, 'DetectWebViewEngine', 'isWKWebView', []); | ||
}); | ||
}; | ||
return DetectWebViewEngine; | ||
}()); | ||
module.exports = DetectWebViewEngine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters