colorAsHex should return hex (fixes #188)

This commit is contained in:
abalabahaha
2016-02-11 10:30:06 -08:00
parent c8acc17d8e
commit 9fc5a752f8
3 changed files with 14 additions and 14 deletions

View File

@@ -125,7 +125,7 @@ export default class Role {
}
colorAsHex(){
var val = this.color.toString();
var val = this.color.toString(16);
while(val.length < 6){
val = "0" + val;
}