We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd1bedb commit abb7ff2Copy full SHA for abb7ff2
src/config.ts
@@ -34,6 +34,7 @@ export type PhraseConfig = Partial<{
34
};
35
fullReparse: boolean;
36
sanitize?: (content: string) => string;
37
+ origin?: string;
38
}>;
39
40
declare global {
@@ -58,7 +59,11 @@ export function initializePhraseAppEditor(config: PhraseConfig) {
58
59
60
61
window.PHRASEAPP_ENABLED = config.phraseEnabled || false;
- window.PHRASEAPP_CONFIG = { ...defaultConfig, ...config };
62
+ window.PHRASEAPP_CONFIG = {
63
+ ...defaultConfig,
64
+ ...config,
65
+ origin: 'ngx-translate-phraseapp',
66
+ };
67
68
if (config.phraseEnabled) {
69
const phraseapp = document.createElement('script');
0 commit comments