File size: 311 Bytes
765bc42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * Get and send oauth tokens from query string.
 */

chrome.runtime.sendMessage(
  {
    type: 'code',
    code: (new URLSearchParams(window.location.search)).get('code'),
  },
  // eslint-disable-next-line no-unused-vars
  (response) => {
    // window.open('', '_self', '');
    // window.close();
  }
);