Skip to content

Commit ee7fe07

Browse files
committed
Merge branch 'dev' of https://github.com/terminusdb/terminus-client into dev
2 parents aa96274 + e697f64 commit ee7fe07

File tree

8 files changed

+567
-540
lines changed

8 files changed

+567
-540
lines changed

dist/terminus-client.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/terminus-client.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/dispatchRequest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ function btoaImplementation(str) {
2020

2121
function DispatchRequest(url, action, payload) {
2222
/*
23-
*CORS is only required when trying to fetch data from a browser,
24-
*as browsers by default will block requests to different origins
23+
*CORS is only required when trying to fetch data from a browser,
24+
*as browsers by default will block requests to different origins
2525
*/
2626
const options = {
2727
mode: 'cors', // no-cors, cors, *same-origin

lib/frameHelper.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,14 @@ FrameHelper.compareIDs = function (ida, idb) {
8888
};
8989

9090

91-
92-
FrameHelper.shorten = function(url, prefixes){
93-
for(var pref in prefixes){
94-
if(prefixes[pref] == url.substring(0, prefixes[pref].length)){
95-
return ( pref + ":" + url.substring(prefixes[pref].length));
91+
FrameHelper.shorten = function (url, prefixes) {
92+
for (const pref in prefixes) {
93+
if (prefixes[pref] == url.substring(0, prefixes[pref].length)) {
94+
return (`${pref}:${url.substring(prefixes[pref].length)}`);
9695
}
9796
}
9897
return url;
99-
}
98+
};
10099

101100
FrameHelper.unshorten = function (url) {
102101
if (this.validURL(url)) return url;

0 commit comments

Comments
 (0)