Answer the question
In order to leave comments, you need to log in
Why can't window.location.href be changed?
let url = chrome.runtime.getURL('options.html'); //валидный! проверено.
location.href = url; //белый экран
location.href='http://ya.ru'; //зато это работает без проблем
Answer the question
In order to leave comments, you need to log in
manifest.json has a web_accessible_resources section. Add options.html there.
But it's better to open the settings like thischrome.runtime.openOptionsPage()
This is for security purposes. Even through command line options, you can't open service pages.
A quick Google search showed that through extensions it seems like it’s possible, but in a new tab.
(found here https://groups.google.com/a/chromium.org/forum/#!t... )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question