 		op: CONST.op.passErrorCode
 		lastError: errorCode
 		() ->
-			sendError =  chrome.runtime.lastError
+			sendError = chrome.runtime.lastError
 			# if popup doesn't open
 			if sendError
 				chrome.browserAction.setBadgeText(

			else
				failCallback && failCallback result
	)
login_guarantee = (callback) ->
	username = localStorage.getItem 'username', ''
	password = localStorage.getItem 'password', ''
	if not username or not password
		console.log "haven't set token, use setToken first"
	login_usereg username, password, callback, (failReason) ->
		console.log("登录失败：" + failReason)
drop_user = (userIP,chksum,callback) ->
	console.log "IP:"+userIP+" chksum:"+chksum
	$.post(

parser = new DOMParser()

auto_online_interval = CONST.auto_online_intervals.NORMAL
auto_online_event = CONST.status.auto_online_event_end

# about token

get_token = () ->
	username = localStorage.getItem 'username', null
	password = localStorage.getItem 'password', null
	if not username or not password
		set_error "no_token"
		throw new Error("no_token")
	return [username, password]

# will convert unit to Byte
unit_convert = (input) ->
