@resconet/jsbridge 16.1.0-beta.2 → 16.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/JSBridge.js +3 -3
package/package.json
CHANGED
package/src/JSBridge.js
CHANGED
|
@@ -5996,6 +5996,9 @@
|
|
|
5996
5996
|
var cmdId = this._createCmdObject(success, failed, scope);
|
|
5997
5997
|
chrome.webview.postMessage(cmdId + ';' + command + ':' + params);
|
|
5998
5998
|
};
|
|
5999
|
+
MobileCRM.Bridge.prototype.alert = function (text, callback, scope) {
|
|
6000
|
+
MobileCRM.bridge.command("alert", text, callback, callback, scope);
|
|
6001
|
+
};
|
|
5999
6002
|
MobileCRM.bridge = new MobileCRM.Bridge('Windows');
|
|
6000
6003
|
}
|
|
6001
6004
|
else if ("external" in window && external) {
|
|
@@ -6022,9 +6025,6 @@
|
|
|
6022
6025
|
};
|
|
6023
6026
|
}
|
|
6024
6027
|
MobileCRM.Bridge.prototype.alert = function (text, callback, scope) {
|
|
6025
|
-
/// <summary>Shows a message asynchronously and calls the callback after it is closed by user.</summary>
|
|
6026
|
-
/// <param name="callback" type="function(obj)">The callback function that is called asynchronously.</param>
|
|
6027
|
-
/// <param name="scope" type="Object">The scope for callbacks.</param>
|
|
6028
6028
|
MobileCRM.bridge.command("alert", text, callback, callback, scope);
|
|
6029
6029
|
};
|
|
6030
6030
|
var platformName = win10 ? window.win10version : (navigator.userAgent.indexOf("Windows Phone") > 0 ? "WindowsPhone" : "WindowsRT");
|