MengYX
4 years ago
2 changed files with 16 additions and 1 deletions
@ -1 +1,13 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
</head> |
|||
<body> |
|||
<script src="./popup.js"></script> |
|||
<a href="./index.html" target="_blank"> |
|||
<button>立即使用</button> |
|||
</a> |
|||
</body> |
|||
</html> |
|||
|
|||
|
@ -1,2 +1,5 @@ |
|||
const bs = chrome || browser |
|||
window.open(bs.runtime.getURL('./index.html')) |
|||
bs.tabs.create({ |
|||
url: bs.runtime.getURL('./index.html') |
|||
}, tab => console.log(tab)) |
|||
|
|||
|
Loading…
Reference in new issue