Skip to content

Commit

Permalink
also check for edge legacy, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
hschell-cortado committed Jul 12, 2022
1 parent b920d9b commit 06bf169
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
38 changes: 25 additions & 13 deletions src/taskpane/taskpane.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,21 @@
<div class="ezp-panel">
<div class="ezp-hero">
<img
src="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/hero.png"
srcset="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/hero.png 1x, https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/[email protected] 2x"
src="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/hero.png"
srcset="
https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/hero.png 1x,
https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/[email protected] 2x
"
alt="ezeep Hero"
/>
</div>
<div class="ezp-logo">
<img
src="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/logo.png"
srcset="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/logo.png 1x, https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/[email protected] 2x"
src="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/logo.png"
srcset="
https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/logo.png 1x,
https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/[email protected] 2x
"
alt="ezeep Logo"
/>
</div>
Expand All @@ -54,17 +60,17 @@
</div>
</div>
</div>
<!-- live client WnjHlEm0TYYJDt8dovTqUDJMa4ifB2C9eehABA1U -->
<!-- dev client 9I9DPCHGvsXjraQfwuRzL7OlVpqiryJ19yfYLeLH
authapihosturl="account.dev.azdev.ezeep.com"
printapihosturl="printapi.dev.azdev.ezeep.com"-->
<ezp-printing
clientid="9I9DPCHGvsXjraQfwuRzL7OlVpqiryJ19yfYLeLH"
redirecturi="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/authRedirect.html"
clientid="WnjHlEm0TYYJDt8dovTqUDJMa4ifB2C9eehABA1U"
redirecturi="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/authRedirect.html"
trigger="custom"
filetype="pdf"
appearance="light"
seamless
hideheader
authapihosturl="account.dev.azdev.ezeep.com"
printapihosturl="printapi.dev.azdev.ezeep.com"
>
</ezp-printing>
<div class="ezp-footer">
Expand All @@ -79,15 +85,21 @@
<div class="ezp-panel">
<div class="ezp-hero">
<img
src="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/hero.png"
srcset="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/hero.png 1x, https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/[email protected] 2x"
src="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/hero.png"
srcset="
https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/hero.png 1x,
https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/[email protected] 2x
"
alt="ezeep Hero"
/>
</div>
<div class="ezp-logo">
<img
src="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/logo.png"
srcset="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/logo.png 1x, https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.29/assets/[email protected] 2x"
src="https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/logo.png"
srcset="
https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/logo.png 1x,
https://cdn.ezeep.com/ezeep-msoffice-addin/v1.0.30/assets/[email protected] 2x
"
alt="ezeep Logo"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/taskpane/taskpane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Office.onReady(async (info) => {
printingSection.style.display = "none";

// eslint-disable-next-line no-undef
if (navigator.userAgent.indexOf("Trident") === -1) {
if (navigator.userAgent.indexOf("Trident") === -1 || navigator.userAgent.indexOf("Edge/") > -1) {
// IE is not the browser. Provide a full-featured version of the add-in here.
// eslint-disable-next-line no-undef
window.addEventListener("printFinished", handlePrintFinished);
Expand Down

0 comments on commit 06bf169

Please sign in to comment.