Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Update readme + typos #19

Merged
merged 7 commits into from Apr 17, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,7 +2,7 @@

[![yarn version](https://badge.fury.io/js/%40jobcloud%2Fapplywith-sdk.png)](https://badge.fury.io/js/%40jobcloud%2Fapplywith-sdk)

[`@jobcloud/applywith-sdk`](https://yarnpkg.com/en/package/@jobcloud/applywith-sdk) is a JavaScript library that lets you easily integrate JobCloud's "Apply with jobs.ch" button on your application form or ATS integration. The feature is mobile-friendly and allows job seekers to apply faster with their jobs.ch profile, including their CV and uploaded documents.
[`@jobcloud/applywith-sdk`](https://yarnpkg.com/en/package/@jobcloud/applywith-sdk) is a JavaScript library that lets you easily integrate JobCloud's "Apply with jobs.ch" or "Apply with jobup.ch" button on your application form or ATS integration. The feature is mobile-friendly and allows job seekers to apply faster with their jobs.ch or jobup.ch profile, including their CV and uploaded documents.

In order to use it in production, you need an access key. Please contact [applywith@jobcloud.ch](mailto:applywith@jobcloud.ch) alongside with a logo image (400x400px) and the domain you want to run it on.

Expand Down
2 changes: 1 addition & 1 deletion mocked-jobcloud-oauth/proxy.html
Expand Up @@ -9,7 +9,7 @@
window.parent.postMessage(JSON.stringify({ type: '@jobcloud/proxy-ready' }), '*');
console.log('Proxy open.');
window.proxyPostMessage = function(data) {
console.log('Proxy has recieved event. Tunneling.');
console.log('Proxy has received event. Tunneling.');
window.parent.postMessage(data, '*')
};
}
Expand Down
2 changes: 1 addition & 1 deletion modules/__tests__/buttonFrame-test.js
Expand Up @@ -58,7 +58,7 @@ describe('buttonFrame', () => {
it('shows user warning when origin does not match', done => {
spyOn(console, 'warn').and.callFake(() => {
expect(console.warn.calls.count()).toEqual(1);
expect(console.warn.calls.argsFor(0)[0]).toContain('JobCloudSDK: Recieved click message from invalid origin!');
expect(console.warn.calls.argsFor(0)[0]).toContain('JobCloudSDK: Received click message from invalid origin!');
done();
});
createFrame(undefined, undefined, 'http://localhost:8081/button.html');
Expand Down
6 changes: 3 additions & 3 deletions modules/checkSecureMessage.js
Expand Up @@ -8,7 +8,7 @@ export default (event: MessageEvent, messageType: string, origin: string): ?Obje
try {
data = JSON.parse(event.data);
} catch (e) {
console.warn('JobCloudSDK: Recieved invalid message format!');
console.warn('JobCloudSDK: Received invalid message format!');
}
if (data === undefined || !('type' in data) || data.type === undefined) {
return null;
Expand All @@ -20,11 +20,11 @@ export default (event: MessageEvent, messageType: string, origin: string): ?Obje
// able to test this security feature as to be left in the dark.
if (process.env.NODE_ENV === 'test') {
if (!('testOrigin' in data) || typeof data.testOrigin !== 'string' || !origin.startsWith(data.testOrigin)) {
console.warn('JobCloudSDK: Recieved click message from invalid origin!');
console.warn('JobCloudSDK: Received click message from invalid origin!');
return null;
}
} else if (!origin.startsWith(event.origin)) {
console.warn('JobCloudSDK: Recieved click message from invalid origin!');
console.warn('JobCloudSDK: Received click message from invalid origin!');
return null;
}

Expand Down