Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
79ded395
Commit
79ded395
authored
3 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
typos
parent
2df32d7c
No related branches found
No related tags found
1 merge request
!67
Create a new i18next instance for every web component
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/common/jsonld.js
+2
-2
2 additions, 2 deletions
packages/common/jsonld.js
with
2 additions
and
2 deletions
packages/common/jsonld.js
+
2
−
2
View file @
79ded395
...
@@ -70,7 +70,7 @@ export default class JSONLD {
...
@@ -70,7 +70,7 @@ export default class JSONLD {
static
_doInitialization
(
apiUrl
)
{
static
_doInitialization
(
apiUrl
)
{
const
xhr
=
new
XMLHttpRequest
();
const
xhr
=
new
XMLHttpRequest
();
const
i18n
=
JSON
.
_i18n
;
const
i18n
=
JSON
LD
.
_i18n
;
xhr
.
open
(
"
GET
"
,
apiUrl
,
true
);
xhr
.
open
(
"
GET
"
,
apiUrl
,
true
);
xhr
.
onreadystatechange
=
function
()
{
xhr
.
onreadystatechange
=
function
()
{
...
@@ -169,7 +169,7 @@ export default class JSONLD {
...
@@ -169,7 +169,7 @@ export default class JSONLD {
* @param message
* @param message
*/
*/
static
_executeFailureFunctions
(
apiUrl
,
message
=
""
)
{
static
_executeFailureFunctions
(
apiUrl
,
message
=
""
)
{
const
i18n
=
JSON
.
_i18n
;
const
i18n
=
JSON
LD
.
_i18n
;
if
(
JSONLD
.
failureFunctions
[
apiUrl
]
!==
undefined
)
{
if
(
JSONLD
.
failureFunctions
[
apiUrl
]
!==
undefined
)
{
for
(
const
fnc
of
JSONLD
.
failureFunctions
[
apiUrl
])
{
for
(
const
fnc
of
JSONLD
.
failureFunctions
[
apiUrl
])
{
if
(
typeof
fnc
==
'
function
'
)
{
if
(
typeof
fnc
==
'
function
'
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment