Open linked resources in a new browsing context
This commit is contained in:
@ -139,7 +139,7 @@ CodeOceanEditorSubmissions = {
|
||||
const active_file = CodeOceanEditor.active_file.filename.replace(/#$/,''); // remove # if it is the last character, this is not part of the filename and just an anchor
|
||||
const desired_file = response.render_url.filter(hash => hash.filepath === active_file);
|
||||
const url = desired_file[0].url;
|
||||
var pop_up_window = window.open(url);
|
||||
var pop_up_window = window.open(url, '_blank');
|
||||
if (pop_up_window) {
|
||||
pop_up_window.onerror = function (message) {
|
||||
this.clearOutput();
|
||||
|
Reference in New Issue
Block a user