mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Add better location
This commit is contained in:
parent
914cbd4e49
commit
f2a2d76025
@ -96,7 +96,7 @@ define(function(require, exports, module) {
|
||||
function handle(err){
|
||||
iframe.removeEventListener("load", handle);
|
||||
iframe.removeEventListener("error", onError);
|
||||
callback(err instanceof Error ? err : null);
|
||||
callback(err instanceof Error ? err : null, tab);
|
||||
}
|
||||
|
||||
function onError(e){
|
||||
@ -122,9 +122,11 @@ define(function(require, exports, module) {
|
||||
|
||||
function run(pluginName, callback){
|
||||
// Load test runner
|
||||
loadIframe(pluginName, function(err){
|
||||
loadIframe(pluginName, function(err, tab){
|
||||
if (err) return callback(err);
|
||||
|
||||
tab.editor.setLocation("Test for `" + pluginName + "`")
|
||||
|
||||
// Wait until iframe is loaded
|
||||
plugin.once("ready", function(){
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user