oolib 2.180.0 → 2.181.0
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.
|
@@ -23,15 +23,16 @@ var PDFEmbedClass = /** @class */ (function () {
|
|
|
23
23
|
};
|
|
24
24
|
PDFEmbedClass.prototype.previewFile = function (divId, viewerConfig, fileInfo) {
|
|
25
25
|
var _this = this;
|
|
26
|
-
var _a;
|
|
27
26
|
var config = {
|
|
28
27
|
/* Pass your registered client id */
|
|
29
28
|
clientId: window.location.href.includes('localhost')
|
|
30
29
|
? 'd12aa56c7f9a4b57af2cd65bb4250760' /** creds created for localhost on https://www.adobe.io/apis/documentcloud/dcsdk/gettingstarted.html# */
|
|
31
|
-
:
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
: this.theme.adobeKey
|
|
31
|
+
// process.env.REACT_APP_ENV === 'prod'
|
|
32
|
+
// ? process.env[`REACT_APP_ADOBE_EMBED_API_KEY__${this.theme?.getTenant()}`]
|
|
33
|
+
// : process.env.REACT_APP_ADOBE_EMBED_API_KEY //staging & dev
|
|
34
34
|
};
|
|
35
|
+
console.log({ config: config });
|
|
35
36
|
if (divId) {
|
|
36
37
|
/* Optional only for Light Box embed mode */
|
|
37
38
|
/* Pass the div id in which PDF should be rendered */
|