Skip to content

Commit

Permalink
Prettier test
Browse files Browse the repository at this point in the history
  • Loading branch information
HJK51 authored Jul 18, 2024
1 parent 39bcd25 commit 4b5db06
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ads/vendors/openadstream.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
import { validateData, writeScript } from "#3p/3p";
import {validateData, writeScript } from '#3p/3p';

/**
* @param {!Window} global
* @param {!Object} data
*/
export function openadstream(global, data) {
validateData(data, ["adhost", "urlpath", "sitepage", "pos"], ["query"]);
validateData(data, ['adhost', 'urlpath', 'sitepage', 'pos'], ['query']);

let url =
"https://" +
'https://' +
encodeURIComponent(data.adhost) +
"/" +
'/' +
data.urlpath +
"/" +
'/' +
data.sitepage +
"@" +
'@' +
data.pos;

if (data.query) {
url = url + "?" + data.query;
url = url + '?' + data.query;
}
writeScript(global, url);
}

0 comments on commit 4b5db06

Please sign in to comment.