Skip to content

Commit

Permalink
add forgotten types, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Glench committed Dec 17, 2022
1 parent 5cb0336 commit 064b04a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ You can copy and paste this to your manifest.json file to fix this error:
}

async function open_popup(url, width, height) {
if (browserPolyfill.windows) {
if (browserPolyfill.windows && browserPolyfill.windows.create) {
const current_window = await browserPolyfill.windows.getCurrent();
// https://stackoverflow.com/a/68456858
const left = Math.round((current_window.width - width) * 0.5 + current_window.left);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "extpay",
"version": "3.0.6",
"version": "3.0.7",
"description": "The JavaScript library for https://extensionpay.com - payments for browser extensions, no server needed.",
"main": "./dist/ExtPay.common.js",
"module": "./dist/ExtPay.module.js",
Expand Down
1 change: 1 addition & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ declare module "extpay" {
addListener: (cb: (user: User) => void) => void
}
openPaymentPage: () => Promise<void>
openLoginPage: () => Promise<void>
openTrialPage: (displayText?: string) => Promise<void>
onTrialStarted: {
addListener: (cb: (user: User) => void) => void
Expand Down

0 comments on commit 064b04a

Please sign in to comment.