1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

Avoid popup blockers by using redirection

This commit is contained in:
Felipe Lube de Bragança 2018-10-15 07:34:34 -03:00
parent c070f17c1c
commit dc0deb0326

View File

@ -121,7 +121,8 @@ class LicenseSuggestion
license = repositoryInfo.license
@setStatus "Error", @repositoryLicense repositoryFullName, license
else # The repository is unlicensed
window.open "https://github.com/#{repositoryFullName}/community/license/new?template=#{@licenseId}"
window.location.href =
"https://github.com/#{repositoryFullName}/community/license/new?template=#{@licenseId}"
@setStatus ""
@inputEl.val("")