Skip to content

Commit

Permalink
Improve ticket consume into new window
Browse files Browse the repository at this point in the history
  • Loading branch information
joelthorner committed Sep 4, 2019
1 parent 76949a0 commit aca548e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,22 @@ chrome.runtime.onInstalled.addListener(function (details) {

// TicketConsume system
function openTicketConsumeTab() {
chrome.tabs.create({
chrome.windows.create({
url: 'http://192.168.110.109:12853/zdreports/rtm.cfm?TicketConsume=true',
// url: 'https://joelthorner.github.io/temp/?TicketConsume=true',
active: false,
// index: 0,
pinned: true
state: 'minimized',
// focused: true
}, function (window) {
// console.log(window);

// chrome.tabs.create({
// // url: 'http://192.168.110.109:12853/zdreports/rtm.cfm?TicketConsume=true',
// url: 'https://joelthorner.github.io/temp/?TicketConsume=true',
// active: false,
// index: 0,
// pinned: true,
// windowId: window.id
// });
});
}
chrome.runtime.onMessage.addListener(function (message, sender) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aca548e

Please sign in to comment.