forked from MapComplete/MapComplete
Move runningFromConsole to utils
This commit is contained in:
parent
c359d43b15
commit
66018cb421
9 changed files with 73 additions and 66 deletions
|
@ -1,9 +1,12 @@
|
|||
import Constants from "../../Models/Constants";
|
||||
import {Utils} from "../../Utils";
|
||||
|
||||
export default class Img {
|
||||
|
||||
public static runningFromConsole = false;
|
||||
|
||||
static AsData(source:string){
|
||||
if(this.runningFromConsole){
|
||||
if(Utils.runningFromConsole){
|
||||
return source;
|
||||
}
|
||||
return `data:image/svg+xml;base64,${(btoa(source))}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue