Skip to content

Commit

Permalink
Add origin option to ICE config
Browse files Browse the repository at this point in the history
Also changed Node version from 12 to 16.20.2.
  • Loading branch information
lookasc committed Nov 27, 2023
1 parent 6be1b91 commit 350e89b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.8
- name: Use Node.js 16.20.2
uses: actions/setup-node@v1
with:
node-version: 12.8
node-version: 16.20.2
- name: Install dependencies
run: npm install
- name: Lint
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 16.20.2
3 changes: 2 additions & 1 deletion dist/angular-phrase.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/angular-phrase.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-phrase.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/angular-phrase.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/angular-phrase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ phrase.directive("phraseJavascript", ["phraseEnabled", "phraseProjectId", "phras
$window.PHRASEAPP_CONFIG = {
projectId: phraseProjectId,
autoLowercase: phraseAutoLowercase,
origin: "angular-phrase"
};
DataUtils.getScript(url);
}
Expand Down
3 changes: 3 additions & 0 deletions test/unit/directives/phrase_javascript.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ describe('phraseJavascript', () => {
it("should attach the autoLowercase setting to the config object", () => {
expect((window as any).PHRASEAPP_CONFIG.autoLowercase).toBeFalsy();
});
it("should attach the origin to the config object", () => {
expect((window as any).PHRASEAPP_CONFIG.origin).toBe("angular-phrase");
});
});
});
});

0 comments on commit 350e89b

Please sign in to comment.