@microsoft/teams-js 2.0.0-beta.6-dev.17 → 2.0.0-beta.6-dev.18
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/dist/MicrosoftTeams.js
CHANGED
@@ -1122,7 +1122,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1122
1122
|
});
|
1123
1123
|
|
1124
1124
|
;// CONCATENATED MODULE: ./src/internal/constants.ts
|
1125
|
-
var version = "2.0.0-beta.6-dev.
|
1125
|
+
var version = "2.0.0-beta.6-dev.18";
|
1126
1126
|
/**
|
1127
1127
|
* @hidden
|
1128
1128
|
* The client version when all SDK APIs started to check platform compatibility for the APIs was 1.6.0.
|
@@ -2920,6 +2920,7 @@ var menus;
|
|
2920
2920
|
// Conflict with some names
|
2921
2921
|
|
2922
2922
|
|
2923
|
+
|
2923
2924
|
/**
|
2924
2925
|
* Namespace containing the set of APIs that support Teams-specific functionalities.
|
2925
2926
|
*/
|
@@ -2930,8 +2931,11 @@ var teamsCore;
|
|
2930
2931
|
*/
|
2931
2932
|
function enablePrintCapability() {
|
2932
2933
|
if (!GlobalVars.printCapabilityEnabled) {
|
2933
|
-
GlobalVars.printCapabilityEnabled = true;
|
2934
2934
|
ensureInitialized();
|
2935
|
+
if (!isSupported()) {
|
2936
|
+
throw errorNotSupportedOnPlatform;
|
2937
|
+
}
|
2938
|
+
GlobalVars.printCapabilityEnabled = true;
|
2935
2939
|
// adding ctrl+P and cmd+P handler
|
2936
2940
|
document.addEventListener('keydown', function (event) {
|
2937
2941
|
if ((event.ctrlKey || event.metaKey) && event.keyCode === 80) {
|
@@ -2961,6 +2965,9 @@ var teamsCore;
|
|
2961
2965
|
*/
|
2962
2966
|
function registerOnLoadHandler(handler) {
|
2963
2967
|
ensureInitialized();
|
2968
|
+
if (!isSupported()) {
|
2969
|
+
throw errorNotSupportedOnPlatform;
|
2970
|
+
}
|
2964
2971
|
handlers_registerOnLoadHandler(handler);
|
2965
2972
|
}
|
2966
2973
|
teamsCore.registerOnLoadHandler = registerOnLoadHandler;
|
@@ -2975,6 +2982,9 @@ var teamsCore;
|
|
2975
2982
|
*/
|
2976
2983
|
function registerBeforeUnloadHandler(handler) {
|
2977
2984
|
ensureInitialized();
|
2985
|
+
if (!isSupported()) {
|
2986
|
+
throw errorNotSupportedOnPlatform;
|
2987
|
+
}
|
2978
2988
|
handlers_registerBeforeUnloadHandler(handler);
|
2979
2989
|
}
|
2980
2990
|
teamsCore.registerBeforeUnloadHandler = registerBeforeUnloadHandler;
|