Skip to content

Commit

Permalink
Merge pull request abalone0204#55 from abalone0204/feature/integrateW…
Browse files Browse the repository at this point in the history
…ithJobHelper

fix(update_package):
  • Loading branch information
abalone0204 authored Jul 2, 2016
2 parents 7340e6a + 80169d1 commit c09d7eb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion chromeExtension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Clairvoyance - 求職天眼通",
"description": "讓你能在各大人力銀行上留言討論職缺,減少求職的資訊不對稱",
"version": "3.3",
"version": "3.5.1",
"author": "clver",
"icons": {
"16": "icon16.png",
Expand Down
13 changes: 13 additions & 0 deletions front-end/jobHelper/getPackageInfo.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import $ from 'jquery'

export default function getPackageInfo(cb) {
chrome.storage.local.get({
packages: {}
Expand All @@ -10,3 +12,14 @@ export default function getPackageInfo(cb) {
cb(items.packages);
});
}

function update_packages(cb) {
$.get('https://jobhelper.g0v.ronny.tw/api/getpackages', (ret) => {
ret.fetch_at = (new Date()).getTime();
chrome.storage.local.set({
packages: ret
}, function() {
cb(ret);
});
}, 'json');
};
10 changes: 0 additions & 10 deletions front-end/jobHelper/searchPackageByNameApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,3 @@ function updateChoosedPackages(choosedPackages) {
});
}

function update_packages(cb) {
$.get('https://jobhelper.g0v.ronny.tw/api/getpackages', (ret) => {
ret.fetch_at = (new Date()).getTime();
chrome.storage.local.set({
packages: ret
}, function() {
cb(ret);
});
}, 'json');
};

0 comments on commit c09d7eb

Please sign in to comment.