Hello Ryan,
There seems to be a spelling error in the following method of the Config class:
public void setLink(String defaultProtocal, Boolean addTargetToExternalLinks) {
JsonObject link = Json.createObject();
link.put("defaultProtocal", Json.create(defaultProtocal));
link.put("addTargetToExternalLinks", Json.create(addTargetToExternalLinks));
configs.put(ConfigType.link, link);
}
“defaultProtocal” shold be named “defaultProtocol”, at least in the JSON Key. Otherwise it will not be recognized.
Also the Config methods
enableStandardMode();
enableRestrictedMode();
are working in the false direction, you have to switch them.
regards, Tom