Merge f570ae3bc950fedf793777c13b36686105b7894c into ee0375473564956609f207f71b1343c83152a6b8
This commit is contained in:
commit
099f5d0a09
@ -6,6 +6,7 @@
|
||||
* @return {void} -
|
||||
*/
|
||||
function openInPopup(url, width, height) {
|
||||
if(browser.windows) {
|
||||
browser.windows.create({
|
||||
url,
|
||||
type: 'popup',
|
||||
@ -13,6 +14,12 @@ function openInPopup(url, width, height) {
|
||||
width,
|
||||
height,
|
||||
});
|
||||
}else if(browser.tabs){
|
||||
browser.tabs.create({
|
||||
active: true,
|
||||
url: url
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user