mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.11.5
This commit is contained in:
parent
a836e066d8
commit
46ebc938e9
4 changed files with 24 additions and 24 deletions
|
|
@ -551,11 +551,6 @@ function parseError(error) {
|
|||
return errorParsed;
|
||||
}
|
||||
|
||||
// open URL in a new tab or window
|
||||
function openURL(url) {
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
// polyfills
|
||||
if (Array.prototype.flat === undefined) {
|
||||
Array.prototype.flat = function() {
|
||||
|
|
@ -581,9 +576,14 @@ function getAbsolutePath(href) {
|
|||
return link.href;
|
||||
}
|
||||
|
||||
// open URL in a new tab or window
|
||||
function openURL(url) {
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
// wrap URL into html a element
|
||||
function link(URL, description) {
|
||||
return `<a href="${URL}" target="_blank">${description}</a>`
|
||||
return `<a href="${URL}" rel="noopener" target="_blank">${description}</a>`
|
||||
}
|
||||
|
||||
// localStorageDB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue