2020-11-16 11:04:53 +00:00
|
|
|
|
2020-11-19 07:32:43 +00:00
|
|
|
var Host = "http://localhost:7123"
|
|
|
|
|
|
|
|
var GetTaskUrl = `${Host}/task/get`;
|
|
|
|
var FinishTaskUrl = `${Host}/task/content`;
|
|
|
|
var ErrorTaskUrl = `${Host}/task/error`;
|
|
|
|
|
|
|
|
const TaskIDKey = "chrome_proxy_tid_key";
|
2020-11-16 11:04:53 +00:00
|
|
|
|
2020-11-17 11:42:36 +00:00
|
|
|
const BackgroundMsgType = {
|
2020-11-18 11:49:46 +00:00
|
|
|
NOTWANT: 'notwant',
|
2020-11-16 11:04:53 +00:00
|
|
|
CONTENT: 'content',
|
2020-11-17 11:42:36 +00:00
|
|
|
GETTASK: 'gettask',
|
2020-11-16 11:04:53 +00:00
|
|
|
TIMEOUT: 'timeout',
|
|
|
|
ERROR: 'error',
|
2020-11-18 11:49:46 +00:00
|
|
|
OK: 'ok',
|
2020-11-19 07:32:43 +00:00
|
|
|
};
|
2020-11-17 11:42:36 +00:00
|
|
|
|
|
|
|
const InjectMsgType = {
|
|
|
|
FETCH: 'fetch',
|
|
|
|
WAIT: 'wait',
|
|
|
|
ERROR: 'error',
|
2020-11-18 11:49:46 +00:00
|
|
|
NOTASK: 'notask',
|
|
|
|
OK: 'ok',
|
2020-11-19 07:32:43 +00:00
|
|
|
};
|