<a href="lib/info.html">Info</a>
// Create Links to launch the test environments
var A = Array.prototype.slice.call(document.querySelectorAll('a'));
A.forEach(function(a){
// Center window on screen.
var screenWidth = screen.availWidth;
var screenHeight = screen.availHeight;
var width = 500;
var height = 300;
a.addEventListener('click', function(){
chrome.app.window.create(a.href, {
id: "helloTestsID",
outerBounds: {
width: width,
height: height,
left: Math.round((screenWidth-width)/2),
top: Math.round((screenHeight-height)/2)
}
});
});
})
Unchecked runtime.lastError while running app.window.create: The URL used for window creation must be local for security reasons.at HTMLAnchorElement.<anonymous> (chrome-extension://pheppafanmpkmdkohnndopphekmmmpln/main.js:86:22)reportIfUnchecked @ extensions::lastError:133handleResponse @ extensions::sendRequest:78index.html:1 Can't open same-window link to "chrome-extension://pheppafanmpkmdkohnndopphekmmmpln/lib/hello/tests/specs/index.html"; try target="_blank".