The documentation implies that
chrome.runtime.getURL works in both apps and extensions, and this 2012 announcement indicates that some APIs (though not
getURL) have moved from
What's the point of
chrome.extension.getURL then, and why isn't it deprecated in favor of
chrome.extension.getURL is now deprecated, you should use
Deprecated since Chrome 58. Please use runtime.getURL.
There isn't any, really.
There are some similar functions there with differences, like
.getBackgroundPage, but in this case there's no effective difference.
And as you said yourself, it's not deprecated either. Why? Maybe just overlooked.
extension API is older than
©2020 All rights reserved.