Skip to content

Commit a23c162

Browse files
committed
DocLister 2.4.0
1 parent e5da567 commit a23c162

5 files changed

Lines changed: 1147 additions & 1138 deletions

File tree

assets/lib/Helpers/Assets.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function registerScript($name, $params)
9696
$out = '';
9797
if (!isset($this->modx->loadedjscripts[$name])) {
9898
$src = $params['src'];
99-
$remote = strpos($src, "http") !== false;
99+
$remote = strpos($src, 'http') === 0 || strpos($src, '//') === 0;
100100
if (!$remote) {
101101
$src = $this->modx->config['site_url'] . $src;
102102
if (!$this->fs->checkFile($params['src'])) {

0 commit comments

Comments
 (0)