mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2026-04-23 00:00:14 +08:00
[windows] Fix failing tests, added Promise if it is not defined 8.1
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
var DisplayInfo = Windows.Graphics.Display.DisplayInformation;
|
||||
var Orientations = Windows.Graphics.Display.DisplayOrientations;
|
||||
|
||||
if (!window.Promise) {
|
||||
window.Promise = WinJS.Promise;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
screenOrientation: function (win, fail, args) {
|
||||
//console.log("screenOrientation proxy called with " + args);
|
||||
|
||||
Reference in New Issue
Block a user