Skip to content

Commit ac204f8

Browse files
committed
Black Summer II
1 parent 91ff09c commit ac204f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Html.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ private function assetsComp()
355355
file_put_contents($this->pathScript.$this->name.'_all.js', $content);
356356
}
357357

358-
$s = '<script id="javascript_base">var URL=\''.$this->url.'\'';
358+
$s = '<script id="javascript_base">var _URL=new URL(\''.$this->url.'\')';
359359
foreach ($this->jsvalues as $n => $v) {
360360
$s .= ','.$n.'='.(is_string($v) ? '\''.str_replace("'", '"', $v).'\'' : $v);
361361
}
@@ -378,7 +378,7 @@ private function assets()
378378
}
379379
$this->val('style', $s);
380380

381-
$s = '<script id="javascript_base">var URL=\''.$this->url.'\'';
381+
$s = '<script id="javascript_base">var _URL=new URL(\''.$this->url.'\')';
382382

383383
foreach ($this->jsvalues as $n => $v) {
384384
$s .= ','.$n.'='.(is_string($v) ? '\''.str_replace("'", '"', $v).'\'' : $v);

0 commit comments

Comments
 (0)