@microsoft/omnichannel-amsclient
Advanced tools
Comparing version 0.1.0-main.294e9eb to 0.1.0-main.ece533e
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
## [Unreleased] | ||
## [Unreleased] | ||
### Added | ||
- Prevent multiple iframes being loaded |
@@ -1,1 +0,1 @@ | ||
exports.baseUrl = 'https://comms-test.omnichannelengagementhub.com/ams'; exports.sdkVersion = '0.1.0-main.294e9eb'; | ||
exports.baseUrl = 'https://comms-test.omnichannelengagementhub.com/ams'; exports.sdkVersion = '0.1.0-main.ece533e'; |
export default interface FileMetadata { | ||
fileSharingProtocolType: number; | ||
fileSharingProtocolType?: number; | ||
id: string; | ||
name: string; | ||
size: number; | ||
name?: string; | ||
size?: number; | ||
type: string; | ||
url: string; | ||
url?: string; | ||
} |
@@ -273,2 +273,7 @@ "use strict"; | ||
return [2 /*return*/, new Promise(function (resolve, reject) { | ||
var iframeElements = Array.from(document.getElementsByTagName('iframe')); | ||
var foundIframeElement = iframeElements.filter(function (iframeElement) { return iframeElement.id == iframeId; }); | ||
if (foundIframeElement.length) { | ||
return resolve(); | ||
} | ||
var iframeElement = document.createElement('iframe'); | ||
@@ -275,0 +280,0 @@ iframeElement.id = iframeId; |
{ | ||
"name": "@microsoft/omnichannel-amsclient", | ||
"version": "0.1.0-main.294e9eb", | ||
"version": "0.1.0-main.ece533e", | ||
"description": "Microsoft Omnichannel AMSClient", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
205297
1571