Skip to content

Commit

Permalink
Replace deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
dteviot committed Aug 19, 2021
1 parent 7c67a93 commit e100964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ var main = (function () {
function openTabWindow() {
// open new tab window, passing ID of open tab with content to convert to epub as query parameter.
getActiveTab().then(function (tabId) {
let url = chrome.extension.getURL("popup.html") + "?id=";
let url = chrome.runtime.getURL("popup.html") + "?id=";
url += tabId;
chrome.tabs.create({ url: url });
window.close();
Expand Down

0 comments on commit e100964

Please sign in to comment.