set target=_blank on manual link
This commit is contained in:
parent
b9f85da9cc
commit
0b8f67c7b5
2 changed files with 2 additions and 4 deletions
|
@ -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 {
|
function init(): void {
|
||||||
let overlays: OverlayState = OverlayState.load() ?? new OverlayState();
|
let overlays: OverlayState = OverlayState.load() ?? new OverlayState();
|
||||||
const map = L.map('map').fitWorld();
|
const map = L.map('map').fitWorld();
|
||||||
// old default zoom was 13
|
|
||||||
|
|
||||||
const streetLayer = TileLayerWrapper.constructLayer(
|
const streetLayer = TileLayerWrapper.constructLayer(
|
||||||
"streetLayer",
|
"streetLayer",
|
||||||
|
|
|
@ -1169,12 +1169,11 @@ class MapHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
MapHandler.instance = null;
|
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() {
|
function init() {
|
||||||
var _a;
|
var _a;
|
||||||
let overlays = (_a = OverlayState.load()) !== null && _a !== void 0 ? _a : new OverlayState();
|
let overlays = (_a = OverlayState.load()) !== null && _a !== void 0 ? _a : new OverlayState();
|
||||||
const map = L.map('map').fitWorld();
|
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', {
|
const streetLayer = TileLayerWrapper.constructLayer("streetLayer", L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
attribution: "street map data © OpenStreetMap contributors" + helpLink
|
attribution: "street map data © OpenStreetMap contributors" + helpLink
|
||||||
|
|
Loading…
Reference in a new issue