Skip to content

Commit

Permalink
Add version info to payload
Browse files Browse the repository at this point in the history
  • Loading branch information
eiurur committed Feb 12, 2020
1 parent 3b51e75 commit 6d5f9ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/js/contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import ChromeSyncStorageManager from './lib/utils/ChromeSyncStorageManager';
import Notification from './lib/utils/Notification';
import MetaDataScraperFactory from './lib/metaData/MetaDataScraperFactory';
import KawpaaAgent from './lib/domains/KawpaaAgent';
import { version } from '../../manifest.json';

(async () => {
const mergePostData = (info = {}) => {
Expand Down Expand Up @@ -32,7 +33,9 @@ import KawpaaAgent from './lib/domains/KawpaaAgent';
const payload = {
token: token,
post: postData,
version,
};
console.log(payload);
const agent = new KawpaaAgent(payload);
await agent.save();
Notification.success();
Expand Down

0 comments on commit 6d5f9ca

Please sign in to comment.