Skip to content

Commit 0b3a599

Browse files
committed
.dev-pool: Assert offline
Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent 32b0998 commit 0b3a599

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adi_doctools/miscellaneous/dev-pool.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ class PoolChanges {
5353
* Find .dev-pool, on first match, return url and content.
5454
*/
5555
static async search (urls) {
56+
if ('file:' == window.location.protocol)
57+
return [null, null]
58+
5659
for (const url of urls) {
5760
try {
5861
const response = await fetch(url, {

0 commit comments

Comments
 (0)