MCPcopy
hub / github.com/philc/vimium / getBaseUrl

Function getBaseUrl

background_scripts/marks.js:10–12  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

8
9// Get the part of a URL we use for matching here (that is, everything up to the first anchor).
10function getBaseUrl(url) {
11 return url.split("#")[0];
12}
13
14// Create a global mark. We record vimiumSecret with the mark so that we can tell later, when the
15// mark is used, whether this is the original Vimium session or a subsequent session. This affects

Callers 3

createFunction · 0.85
gotoFunction · 0.85
focusOrLaunchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected