A typo and an error in the domain lookup comment.

The cloud URL is specified in a `location` attribute, not a `domain` one.
pull/89/head
Bernat Romagosa 2018-11-28 09:29:50 +01:00 zatwierdzone przez GitHub
rodzic ac2b8e7745
commit 85168ece6b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -61,9 +61,9 @@ Cloud.prototype.defaultDomain = Cloud.prototype.knownDomains['Snap!Cloud'];
Cloud.prototype.determineCloudDomain = function () {
// We dynamically determine the domain of the cloud server.
// Thise allows for easy mirrors and development servers.
// This allows for easy mirrors and development servers.
// The domain is determined by:
// 1. <meta name='snap-cloud-domain' domain="X"> in snap.html.
// 1. <meta name='snap-cloud-domain' location="X"> in snap.html.
// 2. The current page's domain
var currentDomain = window.location.host, // host includes the port.
metaTag = document.head.querySelector("[name='snap-cloud-domain']"),