set target=_blank on manual link

This commit is contained in:
Iris Lightshard 2022-08-23 13:51:57 -06:00
parent b9f85da9cc
commit 0b8f67c7b5
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398
2 changed files with 2 additions and 4 deletions

View file

@ -1,10 +1,9 @@
const helpLink = "<br><a href='https://nilfm.cc/git/onyx-scry/about'>ONYX/scry manual</a>";
const helpLink = "<br><a target='_blank' href='https://nilfm.cc/git/onyx-scry/about'>ONYX/scry manual</a>";
function init(): void {
let overlays: OverlayState = OverlayState.load() ?? new OverlayState();
const map = L.map('map').fitWorld();
// old default zoom was 13
const streetLayer = TileLayerWrapper.constructLayer(
"streetLayer",

View file

@ -1169,12 +1169,11 @@ class MapHandler {
}
}
MapHandler.instance = null;
const helpLink = "<br><a href='https://nilfm.cc/git/onyx-scry/about'>ONYX/scry manual</a>";
const helpLink = "<br><a target='_blank' href='https://nilfm.cc/git/onyx-scry/about'>ONYX/scry manual</a>";
function init() {
var _a;
let overlays = (_a = OverlayState.load()) !== null && _a !== void 0 ? _a : new OverlayState();
const map = L.map('map').fitWorld();
// old default zoom was 13
const streetLayer = TileLayerWrapper.constructLayer("streetLayer", L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: "street map data &copy; OpenStreetMap contributors" + helpLink