This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2015-10-16 19:08:28 -04:00
Родитель 6c1f10d592
Коммит 805489ea72
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -6,7 +6,13 @@
function handleClick(e) {
var url = e.target.getAttribute("href");
// For local paths vs. absolute URLs, try to open the right file
// For local paths vs. absolute URLs, try to open the right file.
// Special case (i.e., pass through) some common, non-http(s) protocol
// schemes so they work as expected.
if(/^(javascript|mailto|data|blob):/.test(url)) {
return true;
}
if(!(/\:?\/\//.test(url)) && window._Brackets_LiveDev_Transport) {
window._Brackets_LiveDev_Transport.send("bramble-navigate:" + url);
} else {